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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin182
RA = 177.656, Dec = 41.9096
tmin = 286502401, tmax = 286761601
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='108706', job_status='RUN', time_executed='2021-09-04 13:06:42.594010', time_epoch_executed='1630786002.59' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108706

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108706/ft1_4FGL_J1150.6+4154_daily_bin182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108706/ft2_4FGL_J1150.6+4154_daily_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108706/ft1_4FGL_J1150.6+4154_daily_bin182.fits outfile=/scratch/kocevski/108706/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin182.fits ra=177.656 dec=41.9096 rad=12.0 tmin=286502401.0 tmax=286761601.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.25
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108706/ft1_filtered_4FGL_J1150.6+4154_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/108706/ft2_4FGL_J1150.6+4154_daily_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/108706/ltcube_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.fits outfile=/scratch/kocevski/108706/expmap_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.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/108706/ltcube_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.fits
.....................!
real 190.99
user 185.97
sys 4.59

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/108706/ft1_filtered_4FGL_J1150.6+4154_daily_bin182.fits scfile=/scratch/kocevski/108706/ft2_4FGL_J1150.6+4154_daily_bin182.fits outfile=/scratch/kocevski/108706/cmap_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108706/ft1_filtered_4FGL_J1150.6+4154_daily_bin182.fits scfile=/scratch/kocevski/108706/ft2_4FGL_J1150.6+4154_daily_bin182.fits outfile=/scratch/kocevski/108706/cmap_HighResolution_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .96755       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .14447E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    54.572       1.0000         .10000E-03   10000.    
     7 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.5562       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10926E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .12470E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.462       1.0000         .10000E-03   10000.    
    13 'norm      '    5.6353       1.0000         .10000E-03   10000.    
    14 'norm      '    16.606       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.953       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8947       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26329E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.522       1.0000         .10000E-03   10000.    
    21 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85881       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1301       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=   6660.546     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2763 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    32.806        .46992E-05** at limit **
   2  norm          .96705        .27593       -.38235E-08    .86811E-03
   3  Prefactor     .10001E-03    40.251       -.47073E-05** at limit **
   4  Prefactor     .10000E-03    5.3098       -.46804E-08** at limit **
   5  Prefactor     .10000E-03    24.730       -.59032E-06** at limit **
   6  norm          54.546        18.005        .32368E-06    .34278E-03
   7  norm          .10000E-03    39.528       -.34454E-05** at limit **
   8  Prefactor     2.5556        2.1332        .37676E-07   -.31471E-03
   9  Prefactor     .10001E-03    54.157        .46121E-05** at limit **
  10  norm          .10000E-03    1.0494        .55785E-08** at limit **
  11  Prefactor     .10000E-03    2.0437       -.16378E-06** at limit **
  12  Prefactor     20.472        30.380        .71210E-06    .57158E-04
  13  norm          5.6360        1.5015       -.49834E-08    .27449E-03
  14  norm          16.608        11.184        .19534E-07    .32454E-04
  15  Prefactor     23.923        22.804        .11288E-05    .17578E-03
  16  Prefactor     6.8936        3.5203        .94345E-06   -.17777E-02
  17  Prefactor     .10000E-03    139.58       -.32363E-05** at limit **
  18  Prefactor     .10000E-03    12.957       -.19294E-05** at limit **
  19  Prefactor     .10000E-03    12.101        .85247E-07** at limit **
  20  Prefactor     14.519        8.1426       -.85932E-07   -.92644E-04
  21  norm          .10000E-03    8.5560       -.13100E-06** at limit **
  22  Prefactor     .10000E-03    9.1201        .16992E-06** at limit **
  23  Normalizat    .85874        .16674       -.51017E-06    .20856E-03
  24  Prefactor     1.1301        .19851        .65393E-08    .15967E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  norm       = 0.967052
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 54.5458
  norm       = 0.000100003
  Prefactor  = 2.55564
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 20.4718
  norm       = 5.63599
  norm       = 16.608
  Prefactor  = 23.9235
  Prefactor  = 6.89359
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 14.519
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.858738
  Prefactor  = 1.13008
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.546     FROM HESSE     STATUS=OK           393 CALLS     3156 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    34.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .96705        .27625        .22180E-04   -1.5511    
   3  Prefactor     .10001E-03    42.897        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.3162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          54.546        18.096        .54298E-04   -1.4230    
   7  norm          .10000E-03    40.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.5556        2.1085        .10352E-03   -1.5388    
   9  Prefactor     .10001E-03    55.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.0752        .16301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.875        .22312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.472        30.455        .88544E-04   -1.4803    
  13  norm          5.6360        1.5045        .47008E-04   -1.5233    
  14  norm          16.608        11.187        .98286E-04   -1.4893    
  15  Prefactor     23.923        22.814        .81846E-04   -1.4729    
  16  Prefactor     6.8936        4.0694        .59207E-03   -1.5183    
  17  Prefactor     .10000E-03    142.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    53.995        .54237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.519        8.1668        .10511E-03   -1.4946    
  21  norm          .10000E-03    8.9576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.1505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85874        .19658        .25586E-03   -.97926    
  24  Prefactor     1.1301        .23420        .27894E-03   -.88511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6119e-09
Minuit parameter uncertainties:
  1  0.000900905
  2  0.276252
  3  0.00095245
  4  8.76023e-07
  5  9.55751e-05
  6  18.0981
  7  0.000706766
  8  2.10852
  9  0.00107808
  10  8.43477e-07
  11  0.000183882
  12  30.4777
  13  1.50447
  14  11.188
  15  22.822
  16  4.06953
  17  0.00118373
  18  0.000602263
  19  1.67776e-06
  20  8.16739
  21  6.09105e-06
  22  1.87904e-05
  23  0.196747
  24  0.234411
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.661e+01  1.119e+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.130e+00  2.344e-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:  8.587e-01  1.967e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.12
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 2.52e-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) = 6660.20371136
delta logL = 0.342341649426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6660.18353152
delta logL = 0.36252148505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.540       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0795       1.0000          .0000       5.0000    
     3 'Normalizat'    .84858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1291       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=   6660.184     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      285 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.542        10.685        .10160E-03    .38828E-04
   2  alpha         2.0791        .51814        .11779E-01    .25084E-03
   3  Normalizat    .84864        .18890        .25696E-03   -.52472E-04
   4  Prefactor     1.1291        .23302        .27870E-03   -.22599E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.5422
  alpha      = 2.07905
  Normalizat = 0.848644
  Prefactor  = 1.12909
 **********
 **   18 **HESSE 
 **********

 FCN=   6660.184     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.542        10.445        .40640E-05   -1.4919    
   2  alpha         2.0791        .50657        .23557E-02   -.16918    
   3  Normalizat    .84864        .18901        .10278E-04   -.98289    
   4  Prefactor     1.1291        .23324        .11148E-04   -.88542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91426e-12
Minuit parameter uncertainties:
  1  10.4466
  2  0.51021
  3  0.189159
  4  0.233455
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108706': 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) = 6660.1835311
delta logL = 0.362521912771

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.554e+01  1.045e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.079e+00  5.102e-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.129e+00  2.335e-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:  8.486e-01  1.892e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.84
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.08 +/- 0.51
Photon Flux (Free Index): 4.00e-08 +/- 3.30e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.75e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/108706/cmap_HighResolution_286502401_286761601_4FGL_J1150.6+4154_daily_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='2.60e-05', photon_flux_error='1.42e-08', dlogl='3.63e-01', energy_flux='3.74e-05', photon_flux2='4.00e-08', job_status='DONE', time_completed='2021-09-04 13:18:46.358476', photon_index_error2='0.51', photon_index2='2.08', ts='7.12', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='1.75e-05', EG='0.86', time_epoch_completed='1630786726.36', return_code='0', job_id='108706', GAL2='1.13', EG2='0.85', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='3.30e-08', ts2='7.84', photon_index='1.62' WHERE bin_id='182' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:18:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 108706: <4FGL_J1150.6+4154_daily_bin182> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin182> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:06:25 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:06:27 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:06:27 2021
Terminated at Sat Sep  4 13:18:47 2021
Results reported at Sat Sep  4 13:18:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin182 177.656 41.9096 286502401 286761601 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 :                                   722.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            742 sec.

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

