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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin91
RA = 177.656, Dec = 41.9096
tmin = 262915201, tmax = 263174401
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='107547', job_status='RUN', time_executed='2021-09-04 13:05:37.887448', time_epoch_executed='1630785937.89' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107547

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107547/ft1_4FGL_J1150.6+4154_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107547/ft2_4FGL_J1150.6+4154_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107547/ft1_4FGL_J1150.6+4154_daily_bin91.fits outfile=/scratch/kocevski/107547/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin91.fits ra=177.656 dec=41.9096 rad=12.0 tmin=262915201.0 tmax=263174401.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.28
user 1.11
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107547/ft2_4FGL_J1150.6+4154_daily_bin91.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/107547/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin91.fits evtable="EVENTS" outfile="/scratch/kocevski/107547/ft1_filtered_4FGL_J1150.6+4154_daily_bin91.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.59
user 0.32
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107547/ft1_filtered_4FGL_J1150.6+4154_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/107547/ft2_4FGL_J1150.6+4154_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/107547/ltcube_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.fits outfile=/scratch/kocevski/107547/expmap_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.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/107547/ltcube_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.fits
.....................!
real 191.81
user 186.89
sys 4.58

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/107547/ft1_filtered_4FGL_J1150.6+4154_daily_bin91.fits scfile=/scratch/kocevski/107547/ft2_4FGL_J1150.6+4154_daily_bin91.fits outfile=/scratch/kocevski/107547/cmap_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107547/ft1_filtered_4FGL_J1150.6+4154_daily_bin91.fits scfile=/scratch/kocevski/107547/ft2_4FGL_J1150.6+4154_daily_bin91.fits outfile=/scratch/kocevski/107547/cmap_HighResolution_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.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.80
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.366       1.0000         .10000E-03   10000.    
     2 'norm      '    .84058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1165       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.042       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .76651       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0877       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .55570       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18983       1.0000         .10000E-03   10000.    
    21 'norm      '    15.224       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3220       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .58882       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=   3982.365     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2729 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.525        73.234        .11184E-03   -.97455E-05
   2  norm          .84052        .29536       -.49166E-07   -.43694E-03
   3  Prefactor     7.1158        9.4249        .24761E-05   -.47007E-04
   4  Prefactor     .10000E-03    4.6058        .18791E-07** at limit **
   5  Prefactor     .10000E-03    84.306        .65262E-04** at limit **
   6  norm          19.038        13.625        .56571E-06   -.61089E-04
   7  norm          .10000E-03    40.380        .15963E-04** at limit **
   8  Prefactor     .10000E-03    .88180       -.67357E-08** at limit **
   9  Prefactor     .69999        32.824        .31507E-05   -.22992E-03
  10  norm          1.0863        2.2244       -.28341E-06   -.94448E-03
  11  Prefactor     .10000E-03    2.4113        .26466E-06** at limit **
  12  Prefactor     .10000E-03    69.205       -.67385E-04** at limit **
  13  norm          .55792        1.3065        .17289E-05    .12193E-02
  14  norm          .10000E-03    4.5392       -.11865E-06** at limit **
  15  Prefactor     .10000E-03    10.494       -.17627E-06** at limit **
  16  Prefactor     .10000E-03    1.9337        .13644E-06** at limit **
  17  Prefactor     57.660        54.940       -.14619E-04   -.62792E-05
  18  Prefactor     .10000E-03    20.086        .44140E-06** at limit **
  19  Prefactor     .10000E-03    29.034       -.90473E-05** at limit **
  20  Prefactor     .37857E-01    8.9966        .25040E-05   -.19628E-03
  21  norm          15.217        10.969        .33149E-06   -.41866E-03
  22  Prefactor     .10000E-03    23.946        .42033E-05** at limit **
  23  Normalizat    1.3226        .20961       -.45368E-05   -.21612E-03
  24  Prefactor     .58852        .23719       -.93788E-06   -.33116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.5248
  norm       = 0.840523
  Prefactor  = 7.11578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.0383
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.699993
  norm       = 1.08625
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.557924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.6596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0378572
  norm       = 15.2169
  Prefactor  = 0.0001
  Normalizat = 1.32257
  Prefactor  = 0.588523
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.365     FROM HESSE     STATUS=OK           405 CALLS     3134 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.525        73.208        .28537E-03   -1.4299    
   2  norm          .84052        .29616        .19662E-04   -1.5525    
   3  Prefactor     7.1158        9.4212        .15037E-03   -1.5174    
   4  Prefactor     .10000E-03    4.6070        .13227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    84.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.038        13.619        .91784E-04   -1.4835    
   7  norm          .10000E-03    40.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .88619        .57763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .69999        617.78        .62251E-02   -1.5541    
  10  norm          1.0863        2.4328        .11559E-03   -1.5500    
  11  Prefactor     .10000E-03    2.4349        .95680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    69.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .55792        1.2746        .99036E-04   -1.5559    
  14  norm          .10000E-03    4.5419        .13131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9442        .85668E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.660        54.433        .26409E-03   -1.4188    
  18  Prefactor     .10000E-03    20.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    29.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .37857E-01    22.515        .55676E-01   -1.5669    
  21  norm          15.217        10.971        .51326E-03   -1.4928    
  22  Prefactor     .10000E-03    23.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3226        .23540        .20367E-03   -.82895    
  24  Prefactor     .58852        .26474        .33957E-03   -1.0807    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06471e-08
Minuit parameter uncertainties:
  1  73.3413
  2  0.296165
  3  9.42315
  4  4.67019e-06
  5  9.24877e-06
  6  13.6215
  7  2.55637e-05
  8  1.03497e-06
  9  42.0296
  10  2.43305
  11  1.10976e-05
  12  0.000114782
  13  1.27467
  14  1.5442e-05
  15  2.43945e-05
  16  1.34553e-05
  17  54.4801
  18  9.48091e-05
  19  8.21696e-05
  20  1.8447
  21  10.9726
  22  6.98892e-05
  23  0.235593
  24  0.265305
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  1.544e-05  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:  5.885e-01  2.653e-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.323e+00  2.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/107547/likelihoodResults_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.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) = 3982.36623134
delta logL = -0.000931233976189

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3982.36530016
delta logL = -5.47224772163e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6216       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58846       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=   3982.228     FROM MIGRAD    STATUS=CONVERGED    154 CALLS      296 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13104E-01    .24671E-01    .30198E-02   -.12515E-02
   2  alpha         5.0000        3.7962        .50000    ** at limit **
   3  Normalizat    1.2786        .24359        .20368E-03    .37147E-04
   4  Prefactor     .61938        .27161        .33957E-02   -.24067E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0131036
  alpha      = 5
  Normalizat = 1.27865
  Prefactor  = 0.619376
 **********
 **   18 **HESSE 
 **********

 FCN=   3982.228     FROM HESSE     STATUS=OK            33 CALLS      329 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .13104E-01    .27842E-01    .13093E-04   -1.5731    
   2  alpha         5.0000        3.8666        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2786        .24925        .40735E-04   -.84206    
   4  Prefactor     .61938        .27441        .13583E-03   -1.0678    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98991e-10
Minuit parameter uncertainties:
  1  0.0278421
  2  4.0833e-05
  3  0.249482
  4  0.275005
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107547': 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) = 3982.22797427
delta logL = 0.137325840599

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.310e-02  2.784e-02  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  5.000e+00  4.083e-05  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.194e-01  2.750e-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.279e+00  2.495e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.656 41.910

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/107547/cmap_HighResolution_262915201_263174401_4FGL_J1150.6+4154_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-05', job_status='DONE', photon_flux_upper_limit='3.14e-08', time_completed='2021-09-04 13:15:26.078809', job_id='107547', GAL2='0.62', fit_tolerance='1e-08', EG2='1.28', EG='1.32', time_epoch_completed='1630786526.08', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='1.37e-01', ts2='0.30', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='91' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:15:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 107547: <4FGL_J1150.6+4154_daily_bin91> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin91 177.656 41.9096 262915201 263174401 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 :                                   588.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             271.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

