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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin58
RA = 177.656, Dec = 41.9096
tmin = 254361601, tmax = 254620801
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='107492', job_status='RUN', time_executed='2021-09-04 13:04:16.920058', time_epoch_executed='1630785856.92' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='58'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107492/ft1_4FGL_J1150.6+4154_daily_bin58.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107492/ft2_4FGL_J1150.6+4154_daily_bin58.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107492/ft1_4FGL_J1150.6+4154_daily_bin58.fits outfile=/scratch/kocevski/107492/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin58.fits ra=177.656 dec=41.9096 rad=12.0 tmin=254361601.0 tmax=254620801.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 1.41
user 1.23
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107492/ft1_filtered_4FGL_J1150.6+4154_daily_bin58.fits" evtable="EVENTS" scfile=/scratch/kocevski/107492/ft2_4FGL_J1150.6+4154_daily_bin58.fits sctable="SC_DATA" outfile=/scratch/kocevski/107492/ltcube_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.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/107492/ft2_4FGL_J1150.6+4154_daily_bin58.fits
.....................!
real 12.93
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107492/ft1_filtered_4FGL_J1150.6+4154_daily_bin58.fits evtable="EVENTS" scfile=/scratch/kocevski/107492/ft2_4FGL_J1150.6+4154_daily_bin58.fits sctable="SC_DATA" expcube=/scratch/kocevski/107492/ltcube_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.fits outfile=/scratch/kocevski/107492/expmap_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.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/107492/ltcube_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.fits
.....................!
real 190.92
user 185.15
sys 5.26

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/107492/ft1_filtered_4FGL_J1150.6+4154_daily_bin58.fits scfile=/scratch/kocevski/107492/ft2_4FGL_J1150.6+4154_daily_bin58.fits outfile=/scratch/kocevski/107492/cmap_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.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.59
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.824       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9718       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 '    57.122       1.0000         .10000E-03   10000.    
     6 'norm      '    18.306       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .43285       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7223       1.0000         .10000E-03   10000.    
    14 'norm      '    17.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.0763       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21903       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.786       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.701       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1946       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64068       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=   5039.346     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2705 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.904        130.16        .30328E-05    .43395E-04
   2  norm          1.9718        .40046        .16002E-07    .96840E-03
   3  Prefactor     .10000E-03    4.9182       -.16051E-07** at limit **
   4  Prefactor     .10000E-03    4.3196        .32131E-07** at limit **
   5  Prefactor     57.113        72.548        .81237E-07   -.23080E-04
   6  norm          18.304        13.913        .88637E-07    .35481E-04
   7  norm          .10000E-03    48.637       -.70728E-06** at limit **
   8  Prefactor     .10000E-03    1.4139       -.11897E-05** at limit **
   9  Prefactor     .10000E-03    22.004       -.19375E-06** at limit **
  10  norm          .43246        3.5262        .40479E-05    .77662E-03
  11  Prefactor     .10000E-03    3.6230       -.88094E-06** at limit **
  12  Prefactor     .10000E-03    36.256       -.41063E-07** at limit **
  13  norm          1.7223        1.0795       -.44043E-08   -.18331E-04
  14  norm          17.400        11.615        .14583E-07   -.20153E-04
  15  Prefactor     9.0740        27.606        .49852E-06   -.56583E-04
  16  Prefactor     .19567        6.7406        .49500E-05   -.12853E-02
  17  Prefactor     .10000E-03    22.806       -.25997E-06** at limit **
  18  Prefactor     12.806        19.242       -.10996E-05   -.32444E-03
  19  Prefactor     .10000E-03    9.6024       -.27526E-06** at limit **
  20  Prefactor     .10000E-03    2.0850       -.14571E-06** at limit **
  21  norm          .10000E-03    3.6188       -.10747E-06** at limit **
  22  Prefactor     33.701        22.885        .70956E-06    .71336E-04
  23  Normalizat    1.1945        .18881       -.35430E-05   -.57324E-03
  24  Prefactor     .64085        .20834        .35762E-05   -.13300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9037
  norm       = 1.97181
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.1129
  norm       = 18.3042
  norm       = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.432463
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.72234
  norm       = 17.4
  Prefactor  = 9.07399
  Prefactor  = 0.195674
  Prefactor  = 0.0001
  Prefactor  = 12.8057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.7006
  Normalizat = 1.1945
  Prefactor  = 0.640848
 **********
 **   18 **HESSE 
 **********

 FCN=   5039.346     FROM HESSE     STATUS=OK           395 CALLS     3100 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.904        130.41        .11650E-03   -1.5018    
   2  norm          1.9718        .40099        .19648E-04   -1.5427    
   3  Prefactor     .10000E-03    4.9245        .15374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3210        .14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     57.113        72.551        .26539E-03   -1.4195    
   6  norm          18.304        13.905        .93612E-04   -1.4852    
   7  norm          .10000E-03    48.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.2901        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .43246        4.7616        .20317E-02   -1.5576    
  11  Prefactor     .10000E-03    3.7353        .13276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7223        1.0728        .32006E-04   -1.5445    
  14  norm          17.400        11.614        .96014E-04   -1.4873    
  15  Prefactor     9.0740        27.686        .13303E-03   -1.5105    
  16  Prefactor     .19567        14.567        .18791E-02   -1.5620    
  17  Prefactor     .10000E-03    22.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.806        19.327        .11202E-03   -1.4992    
  19  Prefactor     .10000E-03    9.6127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0886        .10013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.6343        .13182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.701        22.951        .69027E-04   -1.4546    
  23  Normalizat    1.1945        .21328        .20804E-03   -.86773    
  24  Prefactor     .64085        .23661        .32274E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07363e-08
Minuit parameter uncertainties:
  1  79.0203
  2  0.400993
  3  3.39208e-06
  4  4.73137e-06
  5  72.664
  6  13.9077
  7  0.000359341
  8  0.00014449
  9  9.40899e-05
  10  2.86995
  11  0.000117773
  12  5.10239e-05
  13  1.07282
  14  11.6157
  15  27.7254
  16  3.37664
  17  9.88937e-05
  18  19.3365
  19  5.86932e-05
  20  1.33619e-05
  21  1.21515e-05
  22  22.9566
  23  0.213432
  24  0.236979
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.740e+01  1.162e+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:  6.408e-01  2.370e-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.195e+00  2.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.28
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 1.48e-08
Energy Flux (Fixed Index): 3.92e-05 +/- 2.62e-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) = 5038.88805289
delta logL = 0.458397794761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5038.88431437
delta logL = 0.462136315939

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.831       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1206       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64341       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=   5038.884     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.831        199.57        .26925E-02    .64429E-03
   2  alpha         2.1206        3.4662        .25396        .37161E-04
   3  Normalizat    1.1824        .11333        .35338E-01    .22343E-05
   4  Prefactor     .64343        .93662E-01    .72688E-01    .21642E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.8312
  alpha      = 2.12056
  Normalizat = 1.1824
  Prefactor  = 0.643432
 **********
 **   18 **HESSE 
 **********

 FCN=   5038.884     FROM HESSE     STATUS=OK            31 CALLS      265 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.831        11.021        .10770E-03   -1.4964    
   2  alpha         2.1206        .54126        .96391E-02   -.15236    
   3  Normalizat    1.1824        .20083        .20882E-03   -.87149    
   4  Prefactor     .64343        .23459        .32176E-03   -1.0579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34545e-10
Minuit parameter uncertainties:
  1  11.0231
  2  0.545689
  3  0.200958
  4  0.234953
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107492': 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) = 5038.88431437
delta logL = 0.462136319101

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.383e+01  1.102e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.121e+00  5.457e-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:  6.434e-01  2.350e-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.182e+00  2.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.19
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.12 +/- 0.55
Photon Flux (Free Index): 3.84e-08 +/- 2.90e-08
Energy Flux (Free Index): 2.32e-05 +/- 1.76e-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/107492/cmap_HighResolution_254361601_254620801_4FGL_J1150.6+4154_daily_bin58.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='2.32e-05', photon_flux_error='1.48e-08', dlogl='4.62e-01', energy_flux='3.92e-05', photon_flux2='3.84e-08', job_status='DONE', time_completed='2021-09-04 13:14:16.717936', photon_index_error2='0.55', photon_index2='2.12', ts='6.28', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.76e-05', EG='1.19', time_epoch_completed='1630786456.72', return_code='0', job_id='107492', GAL2='0.64', EG2='1.18', return_code2='0', energy_flux_error='2.62e-05', photon_flux_error2='2.90e-08', ts2='7.19', photon_index='1.62' WHERE bin_id='58' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:14:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 107492: <4FGL_J1150.6+4154_daily_bin58> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin58> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:02:05 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:02:07 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:02:07 2021
Terminated at Sat Sep  4 13:14:17 2021
Results reported at Sat Sep  4 13:14:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin58 177.656 41.9096 254361601 254620801 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 :                                   600.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

