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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1046
RA = 177.656, Dec = 41.9096
tmin = 510451201, tmax = 510710401
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='113465', job_status='RUN', time_executed='2021-09-04 13:21:14.985192', time_epoch_executed='1630786874.99' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113465

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113465/ft1_4FGL_J1150.6+4154_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113465/ft2_4FGL_J1150.6+4154_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113465/ft1_4FGL_J1150.6+4154_daily_bin1046.fits outfile=/scratch/kocevski/113465/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1046.fits ra=177.656 dec=41.9096 rad=12.0 tmin=510451201.0 tmax=510710401.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 4.00
user 3.69
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113465/ft1_filtered_4FGL_J1150.6+4154_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/113465/ft2_4FGL_J1150.6+4154_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/113465/ltcube_510451201_510710401_4FGL_J1150.6+4154_daily_bin1046.fits outfile=/scratch/kocevski/113465/expmap_510451201_510710401_4FGL_J1150.6+4154_daily_bin1046.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/113465/ltcube_510451201_510710401_4FGL_J1150.6+4154_daily_bin1046.fits
.....................!
real 192.49
user 185.30
sys 6.02

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/113465/ft1_filtered_4FGL_J1150.6+4154_daily_bin1046.fits scfile=/scratch/kocevski/113465/ft2_4FGL_J1150.6+4154_daily_bin1046.fits outfile=/scratch/kocevski/113465/cmap_510451201_510710401_4FGL_J1150.6+4154_daily_bin1046.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.389       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.713       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4581       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7858       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.6746       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9675       1.0000         .10000E-03   10000.    
    15 'Prefactor '    33.073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4487       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7010       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.3503       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2955       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .83146       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0036       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=   6318.288     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2717 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.386        62.761       -.14784E-05   -.86171E-04
   2  norm          1.0133        .28816        .53670E-08    .13330E-04
   3  Prefactor     5.9118        8.6149       -.22040E-07   -.50656E-04
   4  Prefactor     .10000E-03    5.6018        .37237E-07** at limit **
   5  Prefactor     13.706        63.487       -.46043E-05   -.60208E-04
   6  norm          .10000E-03    3.6860       -.87234E-08** at limit **
   7  norm          .10000E-03    19.767       -.23499E-05** at limit **
   8  Prefactor     1.4576        1.6229        .46806E-07   -.20981E-03
   9  Prefactor     .10000E-03    21.395        .37639E-05** at limit **
  10  norm          2.7849        2.0118        .24396E-07   -.13868E-03
  11  Prefactor     .10000E-03    3.6179        .70747E-08** at limit **
  12  Prefactor     .10000E-03    42.345        .39491E-06** at limit **
  13  norm          2.6743        1.0815       -.11866E-06   -.23187E-03
  14  norm          4.9675        4.9481       -.36094E-07    .10521E-03
  15  Prefactor     33.067        24.529        .42924E-06    .87470E-04
  16  Prefactor     2.4488        2.7751        .63673E-07   -.15797E-03
  17  Prefactor     2.4816        132.46        .12979E-04   -.10354E-03
  18  Prefactor     .10000E-03    16.719        .32170E-06** at limit **
  19  Prefactor     .10000E-03    25.672       -.21094E-05** at limit **
  20  Prefactor     .10000E-03    5.3746        .19770E-07** at limit **
  21  norm          8.3511        7.8078        .30509E-06    .15112E-03
  22  Prefactor     5.2940        20.267        .45694E-06    .26343E-04
  23  Normalizat    .83143        .15694       -.17183E-06   -.38169E-04
  24  Prefactor     1.0037        .18794       -.10595E-06   -.33678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.386
  norm       = 1.01328
  Prefactor  = 5.91181
  Prefactor  = 0.0001
  Prefactor  = 13.7064
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 1.45765
  Prefactor  = 0.000100004
  norm       = 2.78489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.67434
  norm       = 4.96755
  Prefactor  = 33.0668
  Prefactor  = 2.44883
  Prefactor  = 2.4816
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.35107
  Prefactor  = 5.29397
  Normalizat = 0.831431
  Prefactor  = 1.00367
 **********
 **   18 **HESSE 
 **********

 FCN=   6318.288     FROM HESSE     STATUS=OK           399 CALLS     3116 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.386        63.362        .49257E-04   -1.4077    
   2  norm          1.0133        .28854        .21774E-04   -1.5507    
   3  Prefactor     5.9118        8.6163        .16516E-03   -1.5222    
   4  Prefactor     .10000E-03    5.6094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.706        65.830        .10816E-03   -1.4967    
   6  norm          .10000E-03    3.6903        .14903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4576        1.6006        .10207E-03   -1.5466    
   9  Prefactor     .10000E-03    22.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7849        2.0039        .91058E-04   -1.5374    
  11  Prefactor     .10000E-03    3.7152        .29484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    42.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.6743        1.0945        .24918E-04   -1.5381    
  14  norm          4.9675        4.9702        .17247E-03   -1.5262    
  15  Prefactor     33.067        24.644        .69678E-04   -1.4557    
  16  Prefactor     2.4488        2.7708        .13384E-03   -1.5395    
  17  Prefactor     2.4816        185.28        .12393E-02   -1.5393    
  18  Prefactor     .10000E-03    16.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5193        .35982E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.3511        7.7316        .13873E-03   -1.5130    
  22  Prefactor     5.2940        20.044        .17466E-03   -1.5248    
  23  Normalizat    .83143        .18394        .23217E-03   -.98913    
  24  Prefactor     1.0037        .21984        .26372E-03   -.92607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24887e-09
Minuit parameter uncertainties:
  1  63.4261
  2  0.288542
  3  8.6181
  4  3.18753e-06
  5  60.1839
  6  5.29898e-07
  7  0.000335554
  8  1.60062
  9  0.000573726
  10  2.00399
  11  4.20233e-06
  12  8.18681e-05
  13  1.09446
  14  4.97061
  15  24.6512
  16  2.77092
  17  43.0237
  18  3.78348e-05
  19  0.000366036
  20  3.71183e-07
  21  7.73256
  22  20.0691
  23  0.184079
  24  0.220041
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  4.968e+00  4.971e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.004e+00  2.200e-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:  8.314e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.06
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 6.32e-09 +/- 6.32e-09
Energy Flux (Fixed Index): 1.12e-05 +/- 1.12e-05

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) = 6317.95101098
delta logL = 0.337111832803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6317.91326208
delta logL = 0.374860724037

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5902       1.0000         .10000E-03   10000.    
     2 'alpha     '    .92899       1.0000          .0000       5.0000    
     3 'Normalizat'    .83330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0039       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=   6317.913     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      198 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5884        3.6221        .53317E-02   -.24055E-03
   2  alpha         .92851        .59360        .50000       -.27307E-04
   3  Normalizat    .83338        .15038        .44043E-01    .30468E-04
   4  Prefactor     1.0038        .18698        .44439E-01    .11778E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.58842
  alpha      = 0.928508
  Normalizat = 0.833375
  Prefactor  = 1.00381
 **********
 **   18 **HESSE 
 **********

 FCN=   6317.913     FROM HESSE     STATUS=OK            31 CALLS      229 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5884        4.5127        .14708E-03   -1.5329    
   2  alpha         .92851        .72582        .23848E-02   -.67975    
   3  Normalizat    .83338        .17541        .23193E-03   -.98842    
   4  Prefactor     1.0038        .21816        .26372E-03   -.92603    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81427e-11
Minuit parameter uncertainties:
  1  4.51313
  2  0.74383
  3  0.175526
  4  0.218352
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113465': 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) = 6317.91326178
delta logL = 0.374861032084

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  3.588e+00  4.513e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  9.285e-01  7.438e-01  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  1.004e+00  2.184e-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:  8.334e-01  1.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.81
Ra Dec: 177.656 41.910
Photon Index (Free Index): 0.93 +/- 0.74
Photon Flux (Free Index): 3.31e-09 +/- 3.64e-09
Energy Flux (Free Index): 3.27e-05 +/- 5.05e-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/113465/cmap_HighResolution_510451201_510710401_4FGL_J1150.6+4154_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.32e-09', energy_flux2='3.27e-05', photon_flux_error='6.32e-09', dlogl='3.75e-01', energy_flux='1.12e-05', photon_flux2='3.31e-09', job_status='DONE', time_completed='2021-09-04 13:32:41.407115', photon_index_error2='0.74', photon_index2='0.93', ts='9.06', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.05e-05', EG='0.83', time_epoch_completed='1630787561.41', return_code='0', job_id='113465', GAL2='1.00', EG2='0.83', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='3.64e-09', ts2='9.81', photon_index='1.62' WHERE bin_id='1046' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:32:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 113465: <4FGL_J1150.6+4154_daily_bin1046> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1046 177.656 41.9096 510451201 510710401 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 :                                   684.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

