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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin958
RA = 177.656, Dec = 41.9096
tmin = 487641601, tmax = 487900801
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='112412', job_status='RUN', time_executed='2021-09-04 13:17:09.515452', time_epoch_executed='1630786629.52' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='958'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112412

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112412/ft1_4FGL_J1150.6+4154_daily_bin958.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112412/ft1_4FGL_J1150.6+4154_daily_bin958.fits outfile=/scratch/kocevski/112412/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin958.fits ra=177.656 dec=41.9096 rad=12.0 tmin=487641601.0 tmax=487900801.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.04
user 4.79
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.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/112412/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin958.fits evtable="EVENTS" outfile="/scratch/kocevski/112412/ft1_filtered_4FGL_J1150.6+4154_daily_bin958.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/112412/ft1_filtered_4FGL_J1150.6+4154_daily_bin958.fits" evtable="EVENTS" scfile=/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits sctable="SC_DATA" outfile=/scratch/kocevski/112412/ltcube_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.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/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits
.....................!
real 12.11
user 11.72
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112412/ft1_filtered_4FGL_J1150.6+4154_daily_bin958.fits evtable="EVENTS" scfile=/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits sctable="SC_DATA" expcube=/scratch/kocevski/112412/ltcube_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.fits outfile=/scratch/kocevski/112412/expmap_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.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/112412/ltcube_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.fits
.....................!
real 192.07
user 186.77
sys 4.82

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/112412/ft1_filtered_4FGL_J1150.6+4154_daily_bin958.fits scfile=/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits outfile=/scratch/kocevski/112412/cmap_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.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/112412/ft1_filtered_4FGL_J1150.6+4154_daily_bin958.fits scfile=/scratch/kocevski/112412/ft2_4FGL_J1150.6+4154_daily_bin958.fits outfile=/scratch/kocevski/112412/cmap_HighResolution_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.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.52
user 0.37
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.532       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.673       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7115       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.974       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1905       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .29180       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3892       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.898       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1195       1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.423       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71429       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=   5425.332     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2722 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    163.34       -.38927E-06** at limit **
   2  norm          2.0265        .42714        .22450E-07   -.27439E-03
   3  Prefactor     20.538        17.162       -.41888E-08   -.10653E-03
   4  Prefactor     .10000E-03    25.098       -.31911E-06** at limit **
   5  Prefactor     55.671        58.937        .70805E-07   -.70391E-05
   6  norm          .10000E-03    4.7498       -.14666E-06** at limit **
   7  norm          .10000E-03    12.636       -.40794E-08** at limit **
   8  Prefactor     1.7089        2.8461        .37725E-06   -.12535E-03
   9  Prefactor     32.998        40.990       -.62932E-06    .53359E-04
  10  norm          .10000E-03    .74332        .81083E-07** at limit **
  11  Prefactor     1.1914        3.4720        .62871E-06   -.71568E-04
  12  Prefactor     .10000E-03    12.816       -.76639E-07** at limit **
  13  norm          .29190        .62731        .19040E-06    .40101E-03
  14  norm          3.3896        6.2538        .11999E-06   -.59797E-04
  15  Prefactor     .10000E-03    14.273        .23179E-07** at limit **
  16  Prefactor     .10000E-03    1.3427        .13538E-07** at limit **
  17  Prefactor     .10000E-03    23.374       -.38561E-06** at limit **
  18  Prefactor     10.897        14.479        .16857E-06   -.54588E-05
  19  Prefactor     10.501        33.171        .16347E-06   -.23106E-04
  20  Prefactor     1.1198        8.2382        .31311E-05    .12546E-05
  21  norm          .10000E-03    4.3526        .37484E-06** at limit **
  22  Prefactor     34.408        21.563        .21299E-06    .87151E-04
  23  Normalizat    1.1340        .16833       -.55639E-06   -.91933E-04
  24  Prefactor     .71420        .19626       -.23929E-07   -.78286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.02653
  Prefactor  = 20.5381
  Prefactor  = 0.0001
  Prefactor  = 55.6711
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.70892
  Prefactor  = 32.9985
  norm       = 0.0001
  Prefactor  = 1.19138
  Prefactor  = 0.0001
  norm       = 0.291895
  norm       = 3.38956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8972
  Prefactor  = 10.5007
  Prefactor  = 1.11977
  norm       = 0.0001
  Prefactor  = 34.408
  Normalizat = 1.13397
  Prefactor  = 0.714196
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.332     FROM HESSE     STATUS=OK           397 CALLS     3119 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    164.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0265        .42916        .20567E-04   -1.5423    
   3  Prefactor     20.538        17.282        .88394E-04   -1.4801    
   4  Prefactor     .10000E-03    25.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     55.671        58.949        .53761E-04   -1.4214    
   6  norm          .10000E-03    4.7590        .15675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.7089        2.7796        .13016E-03   -1.5447    
   9  Prefactor     32.998        40.818        .69782E-04   -1.4558    
  10  norm          .10000E-03    .74870        .61905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1914        3.4006        .22420E-03   -1.5490    
  12  Prefactor     .10000E-03    12.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .29190        .53859        .84018E-03   -1.5600    
  14  norm          3.3896        6.2355        .21978E-03   -1.5340    
  15  Prefactor     .10000E-03    14.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3643        .83184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10.897        14.479        .12136E-03   -1.5048    
  19  Prefactor     10.501        33.175        .12365E-03   -1.5060    
  20  Prefactor     1.1198        8.0790        .40364E-03   -1.5496    
  21  norm          .10000E-03    4.3914        .14979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     34.408        21.649        .68301E-04   -1.4534    
  23  Normalizat    1.1340        .19290        .20996E-03   -.88669    
  24  Prefactor     .71420        .22425        .30967E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41514e-10
Minuit parameter uncertainties:
  1  0.000204135
  2  0.429158
  3  17.2864
  4  0.000143247
  5  59.0109
  6  1.48041e-06
  7  5.99822e-07
  8  2.77983
  9  40.8522
  10  1.34187e-06
  11  3.40119
  12  1.70189e-05
  13  0.538599
  14  6.23672
  15  1.84996e-05
  16  8.23228e-07
  17  0.000149805
  18  14.4835
  19  33.233
  20  6.01641
  21  7.57426e-06
  22  21.6537
  23  0.193019
  24  0.224532
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  3.390e+00  6.237e+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:  7.142e-01  2.245e-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.134e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/112412/likelihoodResults_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.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) = 5424.90966532
delta logL = 0.422754904405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5424.89207238
delta logL = 0.440347839723

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8358       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8832       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72363       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=   5424.892     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      252 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8326        54.809        .76986E-02    .36953E-03
   2  alpha         2.8845        3.9222        .23533        .67454E-04
   3  Normalizat    1.1125        .54055E-01    .37527E-01    .36648E-05
   4  Prefactor     .72310        .58870E-01    .69537E-01    .18414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83255
  alpha      = 2.88454
  Normalizat = 1.11249
  Prefactor  = 0.723098
 **********
 **   18 **HESSE 
 **********

 FCN=   5424.892     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8326        6.6627        .10515E-03   -1.5437    
   2  alpha         2.8845        1.7902        .13485E-01    .15443    
   3  Normalizat    1.1125        .19310        .21169E-03   -.89352    
   4  Prefactor     .72310        .22651        .30771E-03   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61808e-11
Minuit parameter uncertainties:
  1  6.66541
  2  2.00245
  3  0.19322
  4  0.226796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112412': 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) = 5424.89206848
delta logL = 0.440351741778

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  7.231e-01  2.268e-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.112e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.36
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.88 +/- 2.00
Photon Flux (Free Index): 2.50e-08 +/- 3.86e-08
Energy Flux (Free Index): 6.34e-06 +/- 7.17e-06

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/112412/cmap_HighResolution_487641601_487900801_4FGL_J1150.6+4154_daily_bin958.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.79e-05', comment='SUCCESS', energy_flux2='6.34e-06', dlogl='4.40e-01', photon_flux2='2.50e-08', job_status='DONE', time_completed='2021-09-04 13:29:04.076549', photon_index_error2='2.00', photon_index2='2.88', ts='0.48', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='3.27e-08', energy_flux_error2='7.17e-06', EG='1.13', time_epoch_completed='1630787344.08', return_code='0', job_id='112412', GAL2='0.72', EG2='1.11', return_code2='0', photon_flux_error2='3.86e-08', ts2='1.36', photon_index='1.62' WHERE bin_id='958' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:29:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 112412: <4FGL_J1150.6+4154_daily_bin958> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin958> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:16:53 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:16:54 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:16:54 2021
Terminated at Sat Sep  4 13:29:04 2021
Results reported at Sat Sep  4 13:29:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin958 177.656 41.9096 487641601 487900801 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 :                                   711.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            731 sec.

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

