/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 224 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_bin1414
RA = 177.656, Dec = 41.9096
tmin = 605836801, tmax = 606096001
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='115476', job_status='RUN', time_executed='2021-09-04 13:30:22.847733', time_epoch_executed='1630787422.85' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1414'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/115476

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/115476/ft1_4FGL_J1150.6+4154_daily_bin1414.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/115476/ft1_4FGL_J1150.6+4154_daily_bin1414.fits outfile=/scratch/kocevski/115476/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1414.fits ra=177.656 dec=41.9096 rad=12.0 tmin=605836801.0 tmax=606096001.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.64
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.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/115476/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1414.fits evtable="EVENTS" outfile="/scratch/kocevski/115476/ft1_filtered_4FGL_J1150.6+4154_daily_bin1414.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.54
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/115476/ft1_filtered_4FGL_J1150.6+4154_daily_bin1414.fits" evtable="EVENTS" scfile=/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits sctable="SC_DATA" outfile=/scratch/kocevski/115476/ltcube_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.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/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits
.....................!
real 11.67
user 11.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/115476/ft1_filtered_4FGL_J1150.6+4154_daily_bin1414.fits evtable="EVENTS" scfile=/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits sctable="SC_DATA" expcube=/scratch/kocevski/115476/ltcube_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.fits outfile=/scratch/kocevski/115476/expmap_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.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/115476/ltcube_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.fits
.....................!
real 190.78
user 186.54
sys 3.89

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/115476/ft1_filtered_4FGL_J1150.6+4154_daily_bin1414.fits scfile=/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits outfile=/scratch/kocevski/115476/cmap_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/115476/ft1_filtered_4FGL_J1150.6+4154_daily_bin1414.fits scfile=/scratch/kocevski/115476/ft2_4FGL_J1150.6+4154_daily_bin1414.fits outfile=/scratch/kocevski/115476/cmap_HighResolution_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.814       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5298       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13809E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47834E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    .11809E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .71402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    6.7621       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10117E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    5.2311       1.0000         .10000E-03   10000.    
    14 'norm      '    9.3575       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.253       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.004       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .92846       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3093       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .49402       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=   6313.267     FROM MIGRAD    STATUS=CONVERGED   1025 CALLS     3386 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     66.808        93.727        .49101E-04    .95393E-05
   2  norm          1.5297        .36440        .21999E-04    .25168E-03
   3  Prefactor     9.3393        16.656        .13101E-03    .28723E-04
   4  Prefactor     .10000E-03    51.077        .36285E-03** at limit **
   5  Prefactor     .15410E-03    58.107        .20432    ** at limit **
   6  norm          .10000E-03    27.023        .18142E-02** at limit **
   7  norm          .10000E-03    59.092        .18142E-02** at limit **
   8  Prefactor     .71218        2.2776        .20194E-03    .68964E-04
   9  Prefactor     .10000E-03    29.455        .18142E-02** at limit **
  10  norm          6.7624        2.9535        .84077E-04    .41093E-03
  11  Prefactor     .10000E-03    2.9451        .13238E-02** at limit **
  12  Prefactor     .11733E-03    48.238        .13294    ** at limit **
  13  norm          5.2314        1.6115        .48195E-04    .19064E-02
  14  norm          9.3579        7.6958        .13101E-03    .43735E-04
  15  Prefactor     .10000E-03    57.966        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.3859        .90438E-03** at limit **
  17  Prefactor     14.227        35.191        .10609E-03    .35148E-04
  18  Prefactor     33.003        18.935        .69750E-04    .45312E-04
  19  Prefactor     .10000E-03    10.973        .18142E-02** at limit **
  20  Prefactor     .10000E-03    15.335        .36285E-02** at limit **
  21  norm          .92829        4.0653        .30854E-03    .14776E-04
  22  Prefactor     .10000E-03    4.1740        .15848E-02** at limit **
  23  Normalizat    1.3093        .19341        .20826E-03    .37961E-03
  24  Prefactor     .49404        .21819        .37541E-03    .18476E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 66.8076
  norm       = 1.52973
  Prefactor  = 9.33926
  Prefactor  = 0.0001
  Prefactor  = 0.000154103
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.712179
  Prefactor  = 0.0001
  norm       = 6.76238
  Prefactor  = 0.0001
  Prefactor  = 0.000117335
  norm       = 5.23141
  norm       = 9.35792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.227
  Prefactor  = 33.0026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.92829
  Prefactor  = 0.0001
  Normalizat = 1.30934
  Prefactor  = 0.494039
 **********
 **   18 **HESSE 
 **********

 FCN=   6313.267     FROM HESSE     STATUS=OK           393 CALLS     3779 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     66.808        93.722        .98203E-05   -1.4071    
   2  norm          1.5297        .36438        .87994E-06   -1.5461    
   3  Prefactor     9.3393        16.652        .52404E-05   -1.5097    
   4  Prefactor     .10000E-03    51.079        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .15410E-03    58.718        .20237       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    27.036        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    59.104        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .71218        2.2766        .80777E-05   -1.5539    
   9  Prefactor     .10000E-03    29.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          6.7624        2.9528        .33631E-05   -1.5188    
  11  Prefactor     .10000E-03    2.9457        .26476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .11733E-03    49.837        .13032       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.2314        1.6123        .96389E-05   -1.5250    
  14  norm          9.3579        7.6957        .52404E-05   -1.5096    
  15  Prefactor     .10000E-03    58.010        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3861        .18088E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     14.227        35.189        .42437E-05   -1.4953    
  18  Prefactor     33.003        18.934        .27900E-05   -1.4558    
  19  Prefactor     .10000E-03    10.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.454        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .92829        4.0643        .12341E-04   -1.5515    
  22  Prefactor     .10000E-03    4.1740        .31696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3093        .19349        .41651E-04   -.83288    
  24  Prefactor     .49404        .21829        .15017E-04   -1.1225    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.17713e-10
Minuit parameter uncertainties:
  1  93.9296
  2  0.364379
  3  16.6603
  4  3.65286e-05
  5  0.112837
  6  8.99986e-06
  7  0.000310793
  8  2.27687
  9  2.84968e-05
  10  2.95285
  11  6.55411e-06
  12  0.0588335
  13  1.61236
  14  7.69656
  15  0.000147668
  16  4.00365e-06
  17  35.2403
  18  18.9373
  19  6.37934e-06
  20  2.3572e-05
  21  3.885
  22  2.84536e-06
  23  0.193598
  24  0.218657
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  9.358e+00  7.697e+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:  4.940e-01  2.187e-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.309e+00  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.94
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 9.79e-09
Energy Flux (Fixed Index): 2.11e-05 +/- 1.73e-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) = 6312.99519686
delta logL = 0.272096218324

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6312.98843361
delta logL = 0.278859469098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.4489       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1851       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3099       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49661       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=   6312.988     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      201 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.4489        7.2928        .34479E-02   -.42286E-02
   2  alpha         1.1852        .49271        .42785       -.17699E-04
   3  Normalizat    1.3099        .16507        .47109E-01   -.31853E-04
   4  Prefactor     .49661        .19179        .84543E-01    .77891E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.44888
  alpha      = 1.18522
  Normalizat = 1.30988
  Prefactor  = 0.496612
 **********
 **   18 **HESSE 
 **********

 FCN=   6312.988     FROM HESSE     STATUS=OK            29 CALLS      230 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.4489        7.7647        .13791E-03   -1.5127    
   2  alpha         1.1852        .56296        .17564E-01   -.55379    
   3  Normalizat    1.3099        .18646        .20825E-03   -.83272    
   4  Prefactor     .49661        .21615        .37457E-03   -1.1213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26962e-08
Minuit parameter uncertainties:
  1  7.76564
  2  0.56975
  3  0.186553
  4  0.21651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/115476': 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) = 6312.98843357
delta logL = 0.278859508194

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  8.449e+00  7.766e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.185e+00  5.698e-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:  4.966e-01  2.165e-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.310e+00  1.866e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.50
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.19 +/- 0.57
Photon Flux (Free Index): 7.67e-09 +/- 7.64e-09
Energy Flux (Free Index): 4.13e-05 +/- 5.04e-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/115476/cmap_HighResolution_605836801_606096001_4FGL_J1150.6+4154_daily_bin1414.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='4.13e-05', photon_flux_error='9.79e-09', dlogl='2.79e-01', energy_flux='2.11e-05', photon_flux2='7.67e-09', job_status='DONE', time_completed='2021-09-04 13:42:40.196948', photon_index_error2='0.57', photon_index2='1.19', ts='6.94', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='5.04e-05', EG='1.31', time_epoch_completed='1630788160.2', return_code='0', job_id='115476', GAL2='0.50', EG2='1.31', return_code2='0', energy_flux_error='1.73e-05', photon_flux_error2='7.64e-09', ts2='7.50', photon_index='1.62' WHERE bin_id='1414' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:42:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 115476: <4FGL_J1150.6+4154_daily_bin1414> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1414> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:26:10 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:26: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:26:11 2021
Terminated at Sat Sep  4 13:42:40 2021
Results reported at Sat Sep  4 13:42:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1414 177.656 41.9096 605836801 606096001 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 :                                   734.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             246.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

