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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1432
RA = 177.656, Dec = 41.9096
tmin = 610502401, tmax = 610761601
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='115526', job_status='RUN', time_executed='2021-09-04 13:26:33.463525', time_epoch_executed='1630787193.46' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115526

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115526/ft1_4FGL_J1150.6+4154_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115526/ft1_4FGL_J1150.6+4154_daily_bin1432.fits outfile=/scratch/kocevski/115526/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1432.fits ra=177.656 dec=41.9096 rad=12.0 tmin=610502401.0 tmax=610761601.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 3.60
user 3.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115526/ft1_filtered_4FGL_J1150.6+4154_daily_bin1432.fits" evtable="EVENTS" scfile=/scratch/kocevski/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits sctable="SC_DATA" outfile=/scratch/kocevski/115526/ltcube_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.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/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits
.....................!
real 11.66
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115526/ft1_filtered_4FGL_J1150.6+4154_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/115526/ltcube_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.fits outfile=/scratch/kocevski/115526/expmap_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.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/115526/ltcube_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.fits
.....................!
real 192.92
user 187.53
sys 5.00

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/115526/ft1_filtered_4FGL_J1150.6+4154_daily_bin1432.fits scfile=/scratch/kocevski/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits outfile=/scratch/kocevski/115526/cmap_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.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.65
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115526/ft1_filtered_4FGL_J1150.6+4154_daily_bin1432.fits scfile=/scratch/kocevski/115526/ft2_4FGL_J1150.6+4154_daily_bin1432.fits outfile=/scratch/kocevski/115526/cmap_HighResolution_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14714E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15623E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3278       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0674       1.0000         .10000E-03   10000.    
    12 'Prefactor '    45.077       1.0000         .10000E-03   10000.    
    13 'norm      '    2.4468       1.0000         .10000E-03   10000.    
    14 'norm      '    6.1216       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10645E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6396       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.1996       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.494       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .24400       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8101       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .77764       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4685       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=   6775.276     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2723 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    151.21       -.12292E-04** at limit **
   2  norm          1.1618        .30461       -.11309E-07    .19011E-02
   3  Prefactor     .10000E-03    5.8926       -.28514E-06** at limit **
   4  Prefactor     .10000E-03    15.161       -.99123E-05** at limit **
   5  Prefactor     .10000E-03    52.289        .82135E-05** at limit **
   6  norm          .10000E-03    15.281       -.84294E-05** at limit **
   7  norm          .10000E-03    14.093        .62278E-05** at limit **
   8  Prefactor     .10000E-03    1.2572       -.28521E-07** at limit **
   9  Prefactor     .10000E-03    17.727        .21026E-04** at limit **
  10  norm          7.3298        3.1697       -.11695E-06   -.25153E-03
  11  Prefactor     2.0681        3.0962       -.15040E-06   -.22229E-03
  12  Prefactor     45.076        49.369       -.48385E-06    .11624E-04
  13  norm          2.4469        1.3032        .46707E-06   -.10465E-04
  14  norm          6.1215        8.9010        .16029E-05   -.28065E-04
  15  Prefactor     .10000E-03    21.178       -.10074E-04** at limit **
  16  Prefactor     1.6401        2.3360       -.33643E-06   -.39131E-03
  17  Prefactor     21.683        51.060       -.25546E-04    .12396E-06
  18  Prefactor     7.1992        14.812       -.24005E-06    .43695E-04
  19  Prefactor     38.485        41.559       -.58898E-05    .51996E-04
  20  Prefactor     .10000E-03    3.5361        .24601E-06** at limit **
  21  norm          .22602        5.1437       -.43519E-05    .44634E-03
  22  Prefactor     4.8136        12.360        .95883E-05    .33871E-03
  23  Normalizat    .77754        .16973        .13719E-05    .42897E-03
  24  Prefactor     1.4686        .20725        .46485E-06    .47300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.16183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.32982
  Prefactor  = 2.0681
  Prefactor  = 45.0763
  norm       = 2.44692
  norm       = 6.12145
  Prefactor  = 0.0001
  Prefactor  = 1.64005
  Prefactor  = 21.6828
  Prefactor  = 7.19925
  Prefactor  = 38.4854
  Prefactor  = 0.0001
  norm       = 0.226025
  Prefactor  = 4.81361
  Normalizat = 0.777537
  Prefactor  = 1.46856
 **********
 **   18 **HESSE 
 **********

 FCN=   6775.276     FROM HESSE     STATUS=OK           403 CALLS     3126 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    151.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1618        .30523        .22574E-04   -1.5492    
   3  Prefactor     .10000E-03    5.9161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.329        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    52.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.2528        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3298        3.0988        .88147E-04   -1.5166    
  11  Prefactor     2.0681        3.0681        .17145E-03   -1.5420    
  12  Prefactor     45.076        49.422        .59716E-04   -1.4364    
  13  norm          2.4469        1.2976        .59406E-04   -1.5395    
  14  norm          6.1215        8.8893        .16227E-03   -1.5213    
  15  Prefactor     .10000E-03    21.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6401        2.3016        .13997E-03   -1.5452    
  17  Prefactor     21.683        51.010        .85977E-04   -1.4776    
  18  Prefactor     7.1992        14.737        .14949E-03   -1.5171    
  19  Prefactor     38.485        41.633        .64601E-04   -1.4466    
  20  Prefactor     .10000E-03    3.5471        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .22602        28.271        .33807E-02   -1.5613    
  22  Prefactor     4.8136        12.426        .18343E-03   -1.5269    
  23  Normalizat    .77754        .20237        .27860E-03   -1.0091    
  24  Prefactor     1.4686        .24907        .26472E-03   -.78424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08869e-09
Minuit parameter uncertainties:
  1  0.000132784
  2  0.305234
  3  1.55077e-06
  4  4.29662e-05
  5  2.72038e-05
  6  3.02386e-05
  7  1.59219e-06
  8  6.84156e-06
  9  1.53814e-07
  10  3.09883
  11  3.06829
  12  49.4668
  13  1.29757
  14  8.89124
  15  0.000115715
  16  2.30169
  17  51.1124
  18  14.7439
  19  41.6647
  20  8.24249e-06
  21  5.05697
  22  12.4323
  23  0.202569
  24  0.249272
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  6.121e+00  8.891e+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.469e+00  2.493e-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:  7.775e-01  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/115526/likelihoodResults_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.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) = 6774.60710525
delta logL = 0.669170356122

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6774.60285705
delta logL = 0.673418554951

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3184       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5840       1.0000          .0000       5.0000    
     3 'Normalizat'    .76333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4699       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=   6774.603     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      285 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3192        7.6908        .15724E-03   -.29210E-04
   2  alpha         2.5839        .94695        .13394E-01    .26591E-03
   3  Normalizat    .76334        .19723        .28073E-03    .32239E-03
   4  Prefactor     1.4699        .24791        .26432E-03    .30550E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31917
  alpha      = 2.58387
  Normalizat = 0.763342
  Prefactor  = 1.46992
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.603     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3192        6.7442        .62895E-05   -1.5292    
   2  alpha         2.5839        .83488        .26788E-02    .33553E-01
   3  Normalizat    .76334        .19691        .11229E-04   -1.0144    
   4  Prefactor     1.4699        .24775        .52865E-04   -.78386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4828e-10
Minuit parameter uncertainties:
  1  6.74539
  2  0.851253
  3  0.19709
  4  0.247958
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115526': 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) = 6774.60285704
delta logL = 0.673418566935

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  4.319e+00  6.745e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.584e+00  8.513e-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.470e+00  2.480e-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:  7.633e-01  1.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.20
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.58 +/- 0.85
Photon Flux (Free Index): 3.03e-08 +/- 3.40e-08
Energy Flux (Free Index): 9.87e-06 +/- 9.75e-06

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/115526/cmap_HighResolution_610502401_610761601_4FGL_J1150.6+4154_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-05', comment='SUCCESS', energy_flux2='9.87e-06', dlogl='6.73e-01', photon_flux2='3.03e-08', job_status='DONE', time_completed='2021-09-04 13:39:49.348593', photon_index_error2='0.85', photon_index2='2.58', ts='0.85', fit_tolerance='1e-08', GAL='1.47', photon_index_error='0.00', photon_flux_upper_limit='4.12e-08', energy_flux_error2='9.75e-06', EG='0.78', time_epoch_completed='1630787989.35', return_code='0', job_id='115526', GAL2='1.47', EG2='0.76', return_code2='0', photon_flux_error2='3.40e-08', ts2='2.20', photon_index='1.62' WHERE bin_id='1432' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:39:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 115526: <4FGL_J1150.6+4154_daily_bin1432> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1432> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:26:12 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:26:14 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:26:14 2021
Terminated at Sat Sep  4 13:39:50 2021
Results reported at Sat Sep  4 13:39:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1432 177.656 41.9096 610502401 610761601 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 :                                   792.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

