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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin578
RA = 177.656, Dec = 41.9096
tmin = 389145601, tmax = 389404801
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='110739', job_status='RUN', time_executed='2021-09-04 13:11:49.713915', time_epoch_executed='1630786309.71' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110739/ft1_4FGL_J1150.6+4154_daily_bin578.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110739/ft1_4FGL_J1150.6+4154_daily_bin578.fits outfile=/scratch/kocevski/110739/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin578.fits ra=177.656 dec=41.9096 rad=12.0 tmin=389145601.0 tmax=389404801.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 5.48
user 5.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110739/ft1_filtered_4FGL_J1150.6+4154_daily_bin578.fits" evtable="EVENTS" scfile=/scratch/kocevski/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits sctable="SC_DATA" outfile=/scratch/kocevski/110739/ltcube_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.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/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits
.....................!
real 11.99
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110739/ft1_filtered_4FGL_J1150.6+4154_daily_bin578.fits evtable="EVENTS" scfile=/scratch/kocevski/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits sctable="SC_DATA" expcube=/scratch/kocevski/110739/ltcube_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.fits outfile=/scratch/kocevski/110739/expmap_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.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/110739/ltcube_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.fits
.....................!
real 189.45
user 184.78
sys 4.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/110739/ft1_filtered_4FGL_J1150.6+4154_daily_bin578.fits scfile=/scratch/kocevski/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits outfile=/scratch/kocevski/110739/cmap_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110739/ft1_filtered_4FGL_J1150.6+4154_daily_bin578.fits scfile=/scratch/kocevski/110739/ft2_4FGL_J1150.6+4154_daily_bin578.fits outfile=/scratch/kocevski/110739/cmap_HighResolution_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.877       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6983       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.164       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.314       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28461E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
    10 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.2579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2859       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.307       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39311E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.173       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1346       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81140       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=   5500.739     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2824 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.917        69.134        .99333E-05   -.31210E-05
   2  norm          2.6984        .48918       -.36929E-07   -.25581E-03
   3  Prefactor     .10000E-03    12.109        .47505E-06** at limit **
   4  Prefactor     12.168        16.069       -.14902E-06   -.10332E-04
   5  Prefactor     .10000E-03    29.096        .10820E-05** at limit **
   6  norm          13.329        16.852       -.86334E-06    .25329E-04
   7  norm          .10000E-03    16.821        .14716E-05** at limit **
   8  Prefactor     .10003E-03    1.7935        .29156E-05** at limit **
   9  Prefactor     14.845        52.955       -.14142E-04    .23611E-04
  10  norm          .10000E-03    1.6159        .21857E-05** at limit **
  11  Prefactor     9.2686        8.5794       -.46944E-05    .53290E-05
  12  Prefactor     .10000E-03    39.883       -.90582E-06** at limit **
  13  norm          1.2866        .98395       -.21160E-07   -.93853E-04
  14  norm          .10000E-03    3.5163       -.46081E-07** at limit **
  15  Prefactor     32.344        41.432        .57092E-05    .10086E-04
  16  Prefactor     .10000E-03    1.4922       -.14638E-06** at limit **
  17  Prefactor     .10000E-03    17.959       -.18192E-05** at limit **
  18  Prefactor     .44412        10.699        .16316E-05   -.19018E-03
  19  Prefactor     23.046        40.432        .89625E-05    .82141E-06
  20  Prefactor     .10000E-03    5.1005        .89438E-07** at limit **
  21  norm          .10000E-03    3.2537       -.17672E-06** at limit **
  22  Prefactor     15.170        22.124       -.26057E-06   -.47881E-04
  23  Normalizat    1.1342        .18572       -.31927E-05   -.75725E-04
  24  Prefactor     .81091        .21176       -.68713E-07   -.22085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.9166
  norm       = 2.69841
  Prefactor  = 0.0001
  Prefactor  = 12.168
  Prefactor  = 0.0001
  norm       = 13.3286
  norm       = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 14.8455
  norm       = 0.0001
  Prefactor  = 9.26857
  Prefactor  = 0.0001
  norm       = 1.28657
  norm       = 0.0001
  Prefactor  = 32.3443
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.444121
  Prefactor  = 23.0457
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.1699
  Normalizat = 1.13421
  Prefactor  = 0.810906
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.739     FROM HESSE     STATUS=OK           405 CALLS     3229 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.917        69.136        .26367E-03   -1.4184    
   2  norm          2.6984        .49119        .20919E-04   -1.5379    
   3  Prefactor     .10000E-03    12.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     12.168        16.110        .11486E-03   -1.5010    
   5  Prefactor     .10000E-03    29.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.329        16.822        .10978E-03   -1.4978    
   7  norm          .10000E-03    16.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    17.353        .16862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.845        53.653        .10419E-03   -1.4937    
  10  norm          .10000E-03    1.6543        .18398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.2686        8.5330        .13172E-03   -1.5099    
  12  Prefactor     .10000E-03    39.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2866        .97602        .61437E-04   -1.5481    
  14  norm          .10000E-03    3.5176        .13583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.344        41.405        .70496E-04   -1.4570    
  16  Prefactor     .10000E-03    2.3100        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .44412        66.752        .45758E-02   -1.5575    
  19  Prefactor     23.046        40.356        .83510E-04   -1.4747    
  20  Prefactor     .10000E-03    5.1302        .16355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.2589        .13046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.170        22.164        .10282E-03   -1.4929    
  23  Normalizat    1.1342        .21312        .22797E-03   -.88661    
  24  Prefactor     .81091        .24497        .31293E-03   -.99328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19874e-09
Minuit parameter uncertainties:
  1  69.2324
  2  0.491187
  3  3.93442e-05
  4  16.1161
  5  2.59347e-05
  6  16.8283
  7  1.12939e-05
  8  0.001531
  9  53.8281
  10  4.07865e-05
  11  8.53416
  12  0.000120246
  13  0.976036
  14  5.53215e-06
  15  41.4418
  16  8.85793e-05
  17  1.96224e-05
  18  10.9008
  19  40.4042
  20  2.28129e-05
  21  2.5251e-05
  22  22.1756
  23  0.21328
  24  0.245305
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  5.532e-06  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:  8.109e-01  2.453e-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.134e+00  2.133e-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: 2.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110739/likelihoodResults_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.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) = 5500.74022271
delta logL = -0.00128207729449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5500.73894063
delta logL = 7.16590875527e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6240       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1342       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81090       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=   5500.310     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      344 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20209E-01    .23973E-01    .25509E-02   -.46873E-02
   2  alpha         5.0000        1.1344        .50000    ** at limit **
   3  Normalizat    1.0656        .22349        .22798E-02    .18977E-03
   4  Prefactor     .85885        .24926        .31293E-02    .56138E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0202086
  alpha      = 5
  Normalizat = 1.06556
  Prefactor  = 0.858855
 **********
 **   18 **HESSE 
 **********

 FCN=   5500.310     FROM HESSE     STATUS=OK            31 CALLS      375 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20209E-01    .25115E-01    .11423E-04   -1.5736    
   2  alpha         5.0000        3.0932        .50000        1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0656        .22175        .91191E-04   -.90865    
   4  Prefactor     .85885        .25002        .12517E-03   -.97594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88244e-09
Minuit parameter uncertainties:
  1  0.0251147
  2  0.000199789
  3  0.221944
  4  0.250353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110739': 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) = 5500.30979265
delta logL = 0.429147980793

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  2.021e-02  2.511e-02  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  5.000e+00  1.998e-04  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:  8.589e-01  2.504e-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.066e+00  2.219e-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/110739/cmap_HighResolution_389145601_389404801_4FGL_J1150.6+4154_daily_bin578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.47e-05', job_status='DONE', photon_flux_upper_limit='2.52e-08', time_completed='2021-09-04 13:24:02.678439', job_id='110739', GAL2='0.86', fit_tolerance='1e-08', EG2='1.07', EG='1.13', time_epoch_completed='1630787042.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='4.29e-01', ts2='0.93', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='578' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:24:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 110739: <4FGL_J1150.6+4154_daily_bin578> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin578> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:11:36 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:11:37 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:11:37 2021
Terminated at Sat Sep  4 13:24:03 2021
Results reported at Sat Sep  4 13:24:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin578 177.656 41.9096 389145601 389404801 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 :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             346.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

