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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin631
RA = 177.656, Dec = 41.9096
tmin = 402883201, tmax = 403142401
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='110817', job_status='RUN', time_executed='2021-09-04 13:12:04.874061', time_epoch_executed='1630786324.87' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110817

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110817/ft1_4FGL_J1150.6+4154_daily_bin631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110817/ft2_4FGL_J1150.6+4154_daily_bin631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110817/ft1_4FGL_J1150.6+4154_daily_bin631.fits outfile=/scratch/kocevski/110817/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin631.fits ra=177.656 dec=41.9096 rad=12.0 tmin=402883201.0 tmax=403142401.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.57
user 4.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110817/ft1_filtered_4FGL_J1150.6+4154_daily_bin631.fits evtable="EVENTS" scfile=/scratch/kocevski/110817/ft2_4FGL_J1150.6+4154_daily_bin631.fits sctable="SC_DATA" expcube=/scratch/kocevski/110817/ltcube_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.fits outfile=/scratch/kocevski/110817/expmap_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.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/110817/ltcube_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.fits
.....................!
real 190.53
user 185.17
sys 5.01

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/110817/ft1_filtered_4FGL_J1150.6+4154_daily_bin631.fits scfile=/scratch/kocevski/110817/ft2_4FGL_J1150.6+4154_daily_bin631.fits outfile=/scratch/kocevski/110817/cmap_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.656 yref=41.9096 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.6760       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.6774       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    16.950       1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.000       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2929       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12054E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    127.89       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7912       1.0000         .10000E-03   10000.    
    14 'norm      '    8.0943       1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10720E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    66.004       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10292E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    50.259       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .54342       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3018       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=   6347.218     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2692 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.418       -.13933E-05** at limit **
   2  norm          1.6759        .35995        .17904E-07    .11115E-03
   3  Prefactor     8.6733        11.622        .16783E-07   -.37098E-04
   4  Prefactor     .10000E-03    3.8086        .14574E-07** at limit **
   5  Prefactor     .10000E-03    33.883        .79102E-05** at limit **
   6  norm          16.950        16.391        .14450E-06   -.10150E-04
   7  norm          .10000E-03    31.992       -.62897E-05** at limit **
   8  Prefactor     .10000E-03    .88010        .88954E-08** at limit **
   9  Prefactor     39.000        36.870        .35200E-06    .11164E-04
  10  norm          4.2941        3.6833        .61850E-06   -.29146E-03
  11  Prefactor     .10000E-03    2.6805       -.33348E-06** at limit **
  12  Prefactor     127.88        67.208       -.68089E-05   -.49976E-05
  13  norm          2.7912        1.7068        .16190E-07   -.32348E-03
  14  norm          8.0929        7.9040        .39516E-05   -.15285E-04
  15  Prefactor     46.317        29.914        .63590E-05    .23581E-04
  16  Prefactor     .10000E-03    1.5328        .30664E-08** at limit **
  17  Prefactor     66.013        63.990        .90475E-05   -.28336E-05
  18  Prefactor     39.861        21.299        .64330E-06   -.12099E-04
  19  Prefactor     .10000E-03    25.370       -.68865E-06** at limit **
  20  Prefactor     .10000E-03    3.3762       -.23223E-07** at limit **
  21  norm          .10000E-03    3.0986       -.91955E-07** at limit **
  22  Prefactor     50.265        25.336        .20586E-05   -.41684E-05
  23  Normalizat    .54264        .16944       -.18726E-05   -.12750E-04
  24  Prefactor     1.3028        .19612       -.23641E-06   -.66120E-08
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.6759
  Prefactor  = 8.67328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.9503
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39
  norm       = 4.29407
  Prefactor  = 0.0001
  Prefactor  = 127.88
  norm       = 2.79124
  norm       = 8.09291
  Prefactor  = 46.3169
  Prefactor  = 0.0001
  Prefactor  = 66.0131
  Prefactor  = 39.8613
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 50.2649
  Normalizat = 0.542637
  Prefactor  = 1.30282
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.218     FROM HESSE     STATUS=OK           397 CALLS     3089 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6759        .36084        .21188E-04   -1.5449    
   3  Prefactor     8.6733        11.616        .13608E-03   -1.5119    
   4  Prefactor     .10000E-03    3.8095        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.950        16.358        .97282E-04   -1.4884    
   7  norm          .10000E-03    32.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .88574        .72844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.000        36.807        .64182E-04   -1.4458    
  10  norm          4.2941        3.6464        .11856E-03   -1.5293    
  11  Prefactor     .10000E-03    5.6118        .25120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     127.88        66.863        .35599E-04   -1.3441    
  13  norm          2.7912        1.7001        .63500E-04   -1.5374    
  14  norm          8.0929        7.8958        .14092E-03   -1.5139    
  15  Prefactor     46.317        29.928        .58921E-04   -1.4346    
  16  Prefactor     .10000E-03    1.5487        .95916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     66.013        64.163        .49400E-04   -1.4081    
  18  Prefactor     39.861        21.256        .63489E-04   -1.4444    
  19  Prefactor     .10000E-03    25.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.3933        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.1194        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     50.265        25.351        .56568E-04   -1.4289    
  23  Normalizat    .54264        .19578        .30747E-03   -1.1048    
  24  Prefactor     1.3028        .22836        .25391E-03   -.83223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06909e-10
Minuit parameter uncertainties:
  1  8.85799e-05
  2  0.360842
  3  11.6193
  4  1.11118e-06
  5  1.44709e-05
  6  16.3618
  7  1.55705e-05
  8  3.14391e-08
  9  36.8287
  10  3.64655
  11  7.93607e-05
  12  66.9023
  13  1.70013
  14  7.89679
  15  29.9378
  16  1.44501e-06
  17  64.2299
  18  21.2604
  19  0.000145204
  20  1.41006e-06
  21  1.63945e-05
  22  25.3564
  23  0.196029
  24  0.228538
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.303e+00  2.285e-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:  5.426e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.25
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.03e-08 +/- 1.00e-08
Energy Flux (Fixed Index): 1.82e-05 +/- 1.78e-05

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

Saving results to:
/scratch/kocevski/110817/likelihoodResults_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.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) = 6347.21444513
delta logL = 0.00374464338165

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6347.21443634
delta logL = 0.00375342681218

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0997       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5546       1.0000          .0000       5.0000    
     3 'Normalizat'    .54284       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3030       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=   6347.214     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0953        385.34        .35219E-02    .83863E-04
   2  alpha         1.5541        4.0119        .45679       -.16047E-04
   3  Normalizat    .54297        .15126        .69445E-01    .52842E-03
   4  Prefactor     1.3029        .11956        .57426E-01    .14488E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.09528
  alpha      = 1.55406
  Normalizat = 0.542965
  Prefactor  = 1.30288
 **********
 **   18 **HESSE 
 **********

 FCN=   6347.214     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0953        7.8579        .14088E-03   -1.5139    
   2  alpha         1.5541        .72803        .20143E-01   -.38804    
   3  Normalizat    .54297        .18180        .30740E-03   -1.1046    
   4  Prefactor     1.3029        .22575        .25391E-03   -.83222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05386e-09
Minuit parameter uncertainties:
  1  7.85893
  2  0.740606
  3  0.181999
  4  0.22592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110817': 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) = 6347.21443571
delta logL = 0.00375405716659

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  8.095e+00  7.859e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.554e+00  7.406e-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.303e+00  2.259e-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:  5.430e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.55 +/- 0.74
Photon Flux (Free Index): 9.56e-09 +/- 1.22e-08
Energy Flux (Free Index): 1.99e-05 +/- 2.87e-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/110817/cmap_HighResolution_402883201_403142401_4FGL_J1150.6+4154_daily_bin631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-05', comment='SUCCESS', photon_flux='1.03e-08', energy_flux2='1.99e-05', photon_flux_error='1.00e-08', dlogl='3.75e-03', energy_flux='1.82e-05', photon_flux2='9.56e-09', job_status='DONE', time_completed='2021-09-04 13:24:36.871046', photon_index_error2='0.74', photon_index2='1.55', ts='2.25', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='3.94e-08', energy_flux_error2='2.87e-05', EG='0.54', time_epoch_completed='1630787076.87', return_code='0', job_id='110817', GAL2='1.30', EG2='0.54', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='1.22e-08', ts2='2.25', photon_index='1.62' WHERE bin_id='631' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:24:36 PDT 2021


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

Job <4FGL_J1150.6+4154_daily_bin631> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:11:41 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:11:43 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:11:43 2021
Terminated at Sat Sep  4 13:24:37 2021
Results reported at Sat Sep  4 13:24:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin631 177.656 41.9096 402883201 403142401 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 :                                   751.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             347.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

