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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin22
RA = 177.656, Dec = 41.9096
tmin = 245030401, tmax = 245289601
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='107441', job_status='RUN', time_executed='2021-09-04 13:05:43.197364', time_epoch_executed='1630785943.2' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107441

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107441/ft1_4FGL_J1150.6+4154_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107441/ft2_4FGL_J1150.6+4154_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107441/ft1_4FGL_J1150.6+4154_daily_bin22.fits outfile=/scratch/kocevski/107441/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin22.fits ra=177.656 dec=41.9096 rad=12.0 tmin=245030401.0 tmax=245289601.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.44
user 1.26
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107441/ft1_filtered_4FGL_J1150.6+4154_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/107441/ft2_4FGL_J1150.6+4154_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/107441/ltcube_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.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/107441/ft2_4FGL_J1150.6+4154_daily_bin22.fits
.....................!
real 12.68
user 12.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107441/ft1_filtered_4FGL_J1150.6+4154_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/107441/ft2_4FGL_J1150.6+4154_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/107441/ltcube_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.fits outfile=/scratch/kocevski/107441/expmap_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.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/107441/ltcube_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.fits
.....................!
real 192.09
user 186.49
sys 5.12

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/107441/ft1_filtered_4FGL_J1150.6+4154_daily_bin22.fits scfile=/scratch/kocevski/107441/ft2_4FGL_J1150.6+4154_daily_bin22.fits outfile=/scratch/kocevski/107441/cmap_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0468       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    54.782       1.0000         .10000E-03   10000.    
     6 'norm      '    4.3465       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.6350       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5710       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .49745       1.0000         .10000E-03   10000.    
    14 'norm      '    10.620       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4353       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10471E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0642       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    77.288       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98480       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1259       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=   5072.032     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2751 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.899        .22849E-04** at limit **
   2  norm          1.0468        .35611       -.11110E-07   -.43796E-03
   3  Prefactor     21.749        17.817       -.44542E-06   -.65939E-04
   4  Prefactor     .10000E-03    14.245        .33217E-05** at limit **
   5  Prefactor     54.725        79.236       -.61621E-04   -.18586E-05
   6  norm          4.3464        8.4366       -.37575E-06   -.12105E-03
   7  norm          .10000E-03    18.280       -.19185E-04** at limit **
   8  Prefactor     .10000E-03    1.4538        .25497E-06** at limit **
   9  Prefactor     5.6234        39.818       -.39726E-05   -.58202E-04
  10  norm          1.5715        2.3839       -.19372E-06   -.63534E-03
  11  Prefactor     .10000E-03    1.9442       -.26794E-08** at limit **
  12  Prefactor     .10000E-03    20.431        .21757E-04** at limit **
  13  norm          .49598        1.0364       -.32734E-06   -.17091E-02
  14  norm          10.618        11.210        .11189E-06    .27046E-04
  15  Prefactor     .10000E-03    10.490       -.56152E-06** at limit **
  16  Prefactor     .10000E-03    1.4523       -.45319E-07** at limit **
  17  Prefactor     .10000E-03    127.33       -.21353E-04** at limit **
  18  Prefactor     6.4321        21.957       -.10189E-05   -.22670E-04
  19  Prefactor     .10000E-03    35.750       -.16145E-04** at limit **
  20  Prefactor     3.0594        6.9871        .46215E-05   -.26413E-03
  21  norm          .10000E-03    3.3696        .35925E-07** at limit **
  22  Prefactor     77.290        31.067        .95289E-07    .72509E-05
  23  Normalizat    .98478        .18655        .12401E-05   -.33197E-05
  24  Prefactor     1.1258        .22143        .76643E-06    .36552E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.04684
  Prefactor  = 21.7486
  Prefactor  = 0.0001
  Prefactor  = 54.725
  norm       = 4.34642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62345
  norm       = 1.57147
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.495985
  norm       = 10.6178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43206
  Prefactor  = 0.0001
  Prefactor  = 3.05938
  norm       = 0.0001
  Prefactor  = 77.2905
  Normalizat = 0.98478
  Prefactor  = 1.12576
 **********
 **   18 **HESSE 
 **********

 FCN=   5072.032     FROM HESSE     STATUS=OK           397 CALLS     3148 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    59.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0468        .35673        .23410E-04   -1.5503    
   3  Prefactor     21.749        17.827        .85893E-04   -1.4775    
   4  Prefactor     .10000E-03    14.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     54.725        79.297        .27097E-03   -1.4227    
   6  norm          4.3464        8.4180        .19321E-03   -1.5291    
   7  norm          .10000E-03    18.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0085        .15307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.6234        33.872        .16923E-03   -1.5234    
  10  norm          1.5715        2.3341        .12507E-03   -1.5457    
  11  Prefactor     .10000E-03    1.9535        .96952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .49598        .91429        .96801E-03   -1.5567    
  14  norm          10.618        11.177        .12295E-03   -1.5056    
  15  Prefactor     .10000E-03    10.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4602        .83712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    127.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4321        21.922        .15821E-03   -1.5201    
  19  Prefactor     .10000E-03    35.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0594        6.9500        .23174E-03   -1.5358    
  21  norm          .10000E-03    3.3766        .12760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     77.290        31.089        .45677E-04   -1.3947    
  23  Normalizat    .98478        .21718        .24259E-03   -.93542    
  24  Prefactor     1.1258        .26038        .27790E-03   -.88647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10737e-10
Minuit parameter uncertainties:
  1  9.11274e-06
  2  0.356728
  3  17.8315
  4  3.85459e-06
  5  79.4501
  6  8.42031
  7  1.47204e-05
  8  3.66813e-05
  9  27.6258
  10  2.33421
  11  2.13064e-06
  12  1.17439e-06
  13  0.914317
  14  11.1793
  15  1.09462e-05
  16  1.18652e-06
  17  8.28882e-05
  18  21.9494
  19  0.000106239
  20  6.95188
  21  3.6772e-06
  22  31.0958
  23  0.217375
  24  0.260676
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.062e+01  1.118e+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.126e+00  2.607e-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:  9.848e-01  2.174e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.54
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.42e-08
Energy Flux (Fixed Index): 2.39e-05 +/- 2.52e-05

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

Saving results to:
/scratch/kocevski/107441/likelihoodResults_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.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) = 5070.66726858
delta logL = 1.36489393225

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5070.66440389
delta logL = 1.36775862683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9807       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9844       1.0000          .0000       5.0000    
     3 'Normalizat'    .90427       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1664       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=   5070.664     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      261 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9834        51.453        .45049E-02    .19891E-03
   2  alpha         2.9845        3.7767        .17620        .79626E-04
   3  Normalizat    .90436        .82090E-01    .44956E-01    .10041E-04
   4  Prefactor     1.1664        .84428E-01    .61765E-01    .40519E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.9834
  alpha      = 2.98449
  Normalizat = 0.904359
  Prefactor  = 1.16639
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.664     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9834        10.762        .85668E-04   -1.5261    
   2  alpha         2.9845        1.0681        .69427E-02    .19503    
   3  Normalizat    .90436        .22560        .25153E-03   -.96307    
   4  Prefactor     1.1664        .26631        .27317E-03   -.87372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08439e-11
Minuit parameter uncertainties:
  1  10.7662
  2  1.10516
  3  0.22584
  4  0.266615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107441': 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) = 5070.66440238
delta logL = 1.36776013241

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  4.983e+00  1.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  2.984e+00  1.105e+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:  1.166e+00  2.666e-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:  9.044e-01  2.258e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.29
Ra Dec: 177.656 41.910
Photon Index (Free Index): 2.98 +/- 1.11
Photon Flux (Free Index): 8.57e-08 +/- 6.34e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.23e-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/107441/cmap_HighResolution_245030401_245289601_4FGL_J1150.6+4154_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.83e-05', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='2.03e-05', photon_flux_error='1.42e-08', dlogl='1.37e+00', energy_flux='2.39e-05', photon_flux2='8.57e-08', job_status='DONE', time_completed='2021-09-04 13:16:50.584407', photon_index_error2='1.11', photon_index2='2.98', ts='2.54', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='5.55e-08', energy_flux_error2='1.23e-05', EG='0.98', time_epoch_completed='1630786610.58', return_code='0', job_id='107441', GAL2='1.17', EG2='0.90', return_code2='0', energy_flux_error='2.52e-05', photon_flux_error2='6.34e-08', ts2='5.29', photon_index='1.62' WHERE bin_id='22' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 107441: <4FGL_J1150.6+4154_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin22 177.656 41.9096 245030401 245289601 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 :                                   666.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

