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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1068
RA = 177.656, Dec = 41.9096
tmin = 516153601, tmax = 516412801
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='113497', job_status='RUN', time_executed='2021-09-04 13:24:52.078858', time_epoch_executed='1630787092.08' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1068'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113497

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113497/ft1_4FGL_J1150.6+4154_daily_bin1068.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113497/ft2_4FGL_J1150.6+4154_daily_bin1068.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113497/ft1_4FGL_J1150.6+4154_daily_bin1068.fits outfile=/scratch/kocevski/113497/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1068.fits ra=177.656 dec=41.9096 rad=12.0 tmin=516153601.0 tmax=516412801.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.51
user 3.27
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113497/ft1_filtered_4FGL_J1150.6+4154_daily_bin1068.fits evtable="EVENTS" scfile=/scratch/kocevski/113497/ft2_4FGL_J1150.6+4154_daily_bin1068.fits sctable="SC_DATA" expcube=/scratch/kocevski/113497/ltcube_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.fits outfile=/scratch/kocevski/113497/expmap_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.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/113497/ltcube_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.fits
.....................!
real 190.74
user 184.88
sys 5.48

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/113497/ft1_filtered_4FGL_J1150.6+4154_daily_bin1068.fits scfile=/scratch/kocevski/113497/ft2_4FGL_J1150.6+4154_daily_bin1068.fits outfile=/scratch/kocevski/113497/cmap_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113497/ft1_filtered_4FGL_J1150.6+4154_daily_bin1068.fits scfile=/scratch/kocevski/113497/ft2_4FGL_J1150.6+4154_daily_bin1068.fits outfile=/scratch/kocevski/113497/cmap_HighResolution_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.656 yref=41.9096 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .80523       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.716       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.8438       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .96373       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .97121       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    60.343       1.0000         .10000E-03   10000.    
    13 'norm      '    8.2355       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.849       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.2282       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.035       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.6543       1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.945       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76418       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98512       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=   6032.488     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2668 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.098        .22454E-04** at limit **
   2  norm          .80524        .27007       -.53570E-08   -.77347E-03
   3  Prefactor     .10000E-03    8.4034        .10410E-04** at limit **
   4  Prefactor     11.716        11.074        .21560E-06    .16110E-03
   5  Prefactor     .10000E-03    22.617       -.11270E-05** at limit **
   6  norm          4.8468        12.473       -.86346E-06   -.18587E-03
   7  norm          .10000E-03    20.417       -.42739E-05** at limit **
   8  Prefactor     .96115        1.9210       -.28545E-06   -.88114E-03
   9  Prefactor     .10000E-03    39.217       -.70506E-05** at limit **
  10  norm          .97190        2.2633       -.33602E-06   -.10137E-02
  11  Prefactor     .10000E-03    1.0317       -.61206E-08** at limit **
  12  Prefactor     60.343        48.457        .53076E-07    .13593E-04
  13  norm          8.2349        1.8777       -.16172E-06    .33731E-03
  14  norm          .10000E-03    3.8241       -.13881E-07** at limit **
  15  Prefactor     24.851        23.746        .12819E-05    .92397E-04
  16  Prefactor     8.2282        4.2447        .26057E-06   -.13291E-03
  17  Prefactor     59.054        50.524        .76134E-05    .84421E-05
  18  Prefactor     31.033        25.173       -.15953E-05   -.98980E-05
  19  Prefactor     .10000E-03    39.616       -.11996E-04** at limit **
  20  Prefactor     .10000E-03    8.2401       -.98696E-05** at limit **
  21  norm          4.6557        7.1593        .25052E-05   -.20185E-03
  22  Prefactor     33.940        23.522       -.34309E-05   -.23847E-04
  23  Normalizat    .76392        .16962        .13081E-06    .15010E-03
  24  Prefactor     .98550        .19795        .18822E-06    .11407E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.805244
  Prefactor  = 0.0001
  Prefactor  = 11.7159
  Prefactor  = 0.0001
  norm       = 4.84682
  norm       = 0.0001
  Prefactor  = 0.961154
  Prefactor  = 0.0001
  norm       = 0.971901
  Prefactor  = 0.0001
  Prefactor  = 60.3432
  norm       = 8.23492
  norm       = 0.0001
  Prefactor  = 24.8505
  Prefactor  = 8.22818
  Prefactor  = 59.0535
  Prefactor  = 31.0333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65568
  Prefactor  = 33.94
  Normalizat = 0.763921
  Prefactor  = 0.985502
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.488     FROM HESSE     STATUS=OK           401 CALLS     3069 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80524        .27137        .22365E-04   -1.5529    
   3  Prefactor     .10000E-03    8.4240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.716        11.109        .58519E-03   -1.5023    
   5  Prefactor     .10000E-03    22.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.8468        12.441        .18278E-03   -1.5268    
   7  norm          .10000E-03    20.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .96115        1.8270        .13866E-03   -1.5512    
   9  Prefactor     .10000E-03    39.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .97190        2.1800        .16040E-03   -1.5511    
  11  Prefactor     .10000E-03    1.0336        .77027E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     60.343        48.423        .51651E-04   -1.4153    
  13  norm          8.2349        1.8841        .43750E-04   -1.5134    
  14  norm          .10000E-03    3.8276        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.851        23.790        .80358E-04   -1.4711    
  16  Prefactor     8.2282        4.2468        .98264E-04   -1.5134    
  17  Prefactor     59.054        50.536        .52211E-04   -1.4170    
  18  Prefactor     31.033        25.213        .71922E-04   -1.4593    
  19  Prefactor     .10000E-03    39.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.3805        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.6557        7.0916        .18655E-03   -1.5276    
  22  Prefactor     33.940        23.419        .68779E-04   -1.4542    
  23  Normalizat    .76392        .19408        .25513E-03   -1.0142    
  24  Prefactor     .98550        .22650        .27664E-03   -.93214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45076e-10
Minuit parameter uncertainties:
  1  8.1447e-06
  2  0.271372
  3  3.47478e-06
  4  11.1111
  5  4.9207e-07
  6  12.4477
  7  2.03594e-07
  8  1.8271
  9  0.000134324
  10  2.18013
  11  8.42873e-08
  12  48.4541
  13  1.88413
  14  4.81318e-06
  15  23.7987
  16  4.24692
  17  50.5722
  18  25.222
  19  2.46849e-05
  20  7.88728e-05
  21  7.09286
  22  23.4252
  23  0.194251
  24  0.226717
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  4.813e-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:  9.855e-01  2.267e-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.639e-01  1.943e-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.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/113497/likelihoodResults_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.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) = 6032.48938087
delta logL = -0.00122530125009

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6032.48815554
delta logL = 2.30038494919e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6261       1.0000          .0000       5.0000    
     3 'Normalizat'    .76391       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98552       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=   6032.488     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      232 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    942.31        .14864E-02** at limit **
   2  alpha         1.8980        3.2485        .17957       -.17220E-07
   3  Normalizat    .76392        .15755        .25513E-03   -.62474E-04
   4  Prefactor     .98550        .19297        .27664E-03   -.60574E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.89801
  Normalizat = 0.76392
  Prefactor  = 0.985502
 **********
 **   18 **HESSE 
 **********

 FCN=   6032.488     FROM HESSE     STATUS=OK            23 CALLS      255 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9821        .29728E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8980        3.1930        .71829E-02   -.24319    
   3  Normalizat    .76392        .18449        .10205E-04   -1.0142    
   4  Prefactor     .98550        .22596        .11066E-04   -.93214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35352e-11
Minuit parameter uncertainties:
  1  1.70464e-05
  2  291.31
  3  0.18464
  4  0.226173
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113497': 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) = 6032.48815506
delta logL = 5.0546896091e-07

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  1.705e-05  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.898e+00  2.913e+02  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:  9.855e-01  2.262e-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.639e-01  1.846e-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/113497/cmap_HighResolution_516153601_516412801_4FGL_J1150.6+4154_daily_bin1068.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', job_status='DONE', photon_flux_upper_limit='2.57e-08', time_completed='2021-09-04 13:37:05.664354', job_id='113497', GAL2='0.99', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630787825.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='5.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='1068' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:37:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 113497: <4FGL_J1150.6+4154_daily_bin1068> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1068 177.656 41.9096 516153601 516412801 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 :                                   733.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             265.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

