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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1009
RA = 177.656, Dec = 41.9096
tmin = 500860801, tmax = 501120001
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='113422', job_status='RUN', time_executed='2021-09-04 13:23:23.186986', time_epoch_executed='1630787003.19' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113422

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113422/ft1_4FGL_J1150.6+4154_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113422/ft2_4FGL_J1150.6+4154_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113422/ft1_4FGL_J1150.6+4154_daily_bin1009.fits outfile=/scratch/kocevski/113422/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1009.fits ra=177.656 dec=41.9096 rad=12.0 tmin=500860801.0 tmax=501120001.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.62
user 4.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113422/ft1_filtered_4FGL_J1150.6+4154_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/113422/ft2_4FGL_J1150.6+4154_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/113422/ltcube_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.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/113422/ft2_4FGL_J1150.6+4154_daily_bin1009.fits
.....................!
real 12.49
user 12.10
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113422/ft1_filtered_4FGL_J1150.6+4154_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/113422/ft2_4FGL_J1150.6+4154_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/113422/ltcube_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.fits outfile=/scratch/kocevski/113422/expmap_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.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/113422/ltcube_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.fits
.....................!
real 191.53
user 185.74
sys 4.48

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/113422/ft1_filtered_4FGL_J1150.6+4154_daily_bin1009.fits scfile=/scratch/kocevski/113422/ft2_4FGL_J1150.6+4154_daily_bin1009.fits outfile=/scratch/kocevski/113422/cmap_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.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.57
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.865       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8688       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 '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.2493       1.0000         .10000E-03   10000.    
     7 'norm      '    .11153E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60837       1.0000         .10000E-03   10000.    
     9 'Prefactor '    70.148       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0520       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2879       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.1883       1.0000         .10000E-03   10000.    
    13 'norm      '    .11094E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    17.031       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5177       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2417       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.219       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10914E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3617       1.0000         .10000E-03   10000.    
    21 'norm      '    19.954       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0668       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80783       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=   5719.462     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2758 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.785        90.777       -.49048E-05   -.62275E-04
   2  norm          1.8689        .38861       -.30962E-07    .26659E-03
   3  Prefactor     .10000E-03    6.2230       -.10165E-06** at limit **
   4  Prefactor     .10000E-03    7.5137       -.22247E-07** at limit **
   5  Prefactor     .10000E-03    88.216        .72028E-06** at limit **
   6  norm          8.2514        13.302        .23883E-05    .92738E-04
   7  norm          .10000E-03    89.192        .81934E-06** at limit **
   8  Prefactor     .60817        3.0426        .95173E-06    .24032E-03
   9  Prefactor     70.140        67.538       -.12267E-05    .10149E-03
  10  norm          2.0540        3.1444       -.16138E-06    .61020E-03
  11  Prefactor     1.2889        4.1962        .11972E-05    .12400E-03
  12  Prefactor     7.1154        36.593        .72668E-05    .22168E-03
  13  norm          .10000E-03    .52891       -.18211E-05** at limit **
  14  norm          17.028        11.473        .46878E-06    .47044E-03
  15  Prefactor     9.4952        22.545       -.78505E-06    .40172E-04
  16  Prefactor     1.2395        2.3585        .25030E-06    .88096E-04
  17  Prefactor     .10000E-03    26.870       -.22812E-06** at limit **
  18  Prefactor     23.229        18.610       -.43359E-06    .91404E-05
  19  Prefactor     .10000E-03    40.273        .41582E-06** at limit **
  20  Prefactor     7.3546        10.759       -.19922E-07    .95421E-04
  21  norm          19.955        7.7390       -.16577E-06   -.28245E-03
  22  Prefactor     .10000E-03    6.4838       -.24020E-06** at limit **
  23  Normalizat    1.0667        .18003        .40232E-05    .56321E-03
  24  Prefactor     .80790        .20913       -.45248E-05    .54247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7855
  norm       = 1.86892
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.25144
  norm       = 0.0001
  Prefactor  = 0.608174
  Prefactor  = 70.1396
  norm       = 2.05404
  Prefactor  = 1.28895
  Prefactor  = 7.11539
  norm       = 0.0001
  norm       = 17.028
  Prefactor  = 9.49522
  Prefactor  = 1.23955
  Prefactor  = 0.0001
  Prefactor  = 23.2291
  Prefactor  = 0.0001
  Prefactor  = 7.35457
  norm       = 19.9554
  Prefactor  = 0.0001
  Normalizat = 1.06668
  Prefactor  = 0.807899
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.462     FROM HESSE     STATUS=OK           395 CALLS     3153 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.785        90.977        .92213E-04   -1.4841    
   2  norm          1.8689        .38918        .20769E-04   -1.5435    
   3  Prefactor     .10000E-03    6.2368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    88.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.2514        13.215        .69792E-03   -1.5133    
   7  norm          .10000E-03    90.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .60817        2.5586        .19283E-03   -1.5552    
   9  Prefactor     70.140        63.944        .47928E-04   -1.4031    
  10  norm          2.0540        3.0817        .13788E-03   -1.5421    
  11  Prefactor     1.2889        4.1235        .26402E-03   -1.5481    
  12  Prefactor     7.1154        38.801        .14961E-03   -1.5174    
  13  norm          .10000E-03    .64997        .95557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          17.028        11.498        .97050E-04   -1.4882    
  15  Prefactor     9.4952        22.565        .12990E-03   -1.5092    
  16  Prefactor     1.2395        2.2861        .14668E-03   -1.5485    
  17  Prefactor     .10000E-03    26.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.229        18.448        .83127E-04   -1.4744    
  19  Prefactor     .10000E-03    40.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.3546        10.757        .14782E-03   -1.5166    
  21  norm          19.955        7.7345        .89663E-04   -1.4814    
  22  Prefactor     .10000E-03    6.4911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0667        .20296        .22507E-03   -.90829    
  24  Prefactor     .80790        .23258        .30565E-03   -.99438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84977e-09
Minuit parameter uncertainties:
  1  82.8853
  2  0.389182
  3  1.99544e-05
  4  8.15977e-06
  5  0.000298599
  6  13.2195
  7  0.000207334
  8  2.49484
  9  64.0064
  10  3.08193
  11  4.12438
  12  33.2649
  13  2.71942e-05
  14  11.4997
  15  22.5849
  16  2.28623
  17  5.41126e-06
  18  18.4521
  19  1.53692e-05
  20  10.7598
  21  7.73485
  22  4.69314e-06
  23  0.203108
  24  0.232865
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.703e+01  1.150e+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:  8.079e-01  2.329e-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.067e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.53
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.17e-08 +/- 1.46e-08
Energy Flux (Fixed Index): 3.84e-05 +/- 2.59e-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) = 5719.17982387
delta logL = 0.282244985546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5718.97488903
delta logL = 0.487179831291

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.6496       1.0000         .10000E-03   10000.    
     2 'alpha     '    .87225       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81803       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=   5718.975     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.6533        9.9874        .29572E-05   -.11881E-03
   2  alpha         .87291        .63522        .53728E-04    .62423E-05
   3  Normalizat    1.0707        .16570        .66137E-07   -.11571E-03
   4  Prefactor     .81821        .19972       -.30081E-06   -.80287E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.65333
  alpha      = 0.87291
  Normalizat = 1.07073
  Prefactor  = 0.818206
 **********
 **   18 **HESSE 
 **********

 FCN=   5718.975     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.6533        10.028        .13630E-03   -1.5120    
   2  alpha         .87291        .63425        .15976E-02   -.70869    
   3  Normalizat    1.0707        .19229        .22467E-03   -.90697    
   4  Prefactor     .81821        .23141        .30401E-03   -.99061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94392e-11
Minuit parameter uncertainties:
  1  10.0301
  2  0.646686
  3  0.192419
  4  0.231685
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113422': 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) = 5718.97488703
delta logL = 0.48718182657

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  8.653e+00  1.003e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  8.729e-01  6.467e-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.182e-01  2.317e-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.071e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.48
Ra Dec: 177.656 41.910
Photon Index (Free Index): 0.87 +/- 0.65
Photon Flux (Free Index): 8.22e-09 +/- 7.37e-09
Energy Flux (Free Index): 9.13e-05 +/- 9.99e-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/113422/cmap_HighResolution_500860801_501120001_4FGL_J1150.6+4154_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-08', energy_flux2='9.13e-05', photon_flux_error='1.46e-08', dlogl='4.87e-01', energy_flux='3.84e-05', photon_flux2='8.22e-09', job_status='DONE', time_completed='2021-09-04 13:34:22.868193', photon_index_error2='0.65', photon_index2='0.87', ts='9.53', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='9.99e-05', EG='1.07', time_epoch_completed='1630787662.87', return_code='0', job_id='113422', GAL2='0.82', EG2='1.07', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='7.37e-09', ts2='10.48', photon_index='1.62' WHERE bin_id='1009' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:34:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 113422: <4FGL_J1150.6+4154_daily_bin1009> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1009> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:20:59 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:21: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:21:01 2021
Terminated at Sat Sep  4 13:34:23 2021
Results reported at Sat Sep  4 13:34:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1009 177.656 41.9096 500860801 501120001 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 :                                   655.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            804 sec.

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

