/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 0 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 = 7603
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin142
RA = 177.656, Dec = 41.9096
tmin = 276134401, tmax = 276393601
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='108642', job_status='RUN', time_executed='2021-09-04 13:06:34.468691', time_epoch_executed='1630785994.47' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='142'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/108642

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/108642/ft1_4FGL_J1150.6+4154_daily_bin142.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/108642/ft1_4FGL_J1150.6+4154_daily_bin142.fits outfile=/scratch/kocevski/108642/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin142.fits ra=177.656 dec=41.9096 rad=12.0 tmin=276134401.0 tmax=276393601.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.18
user 4.60
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.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/108642/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin142.fits evtable="EVENTS" outfile="/scratch/kocevski/108642/ft1_filtered_4FGL_J1150.6+4154_daily_bin142.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.63
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/108642/ft1_filtered_4FGL_J1150.6+4154_daily_bin142.fits" evtable="EVENTS" scfile=/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits sctable="SC_DATA" outfile=/scratch/kocevski/108642/ltcube_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.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/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits
.....................!
real 11.83
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/108642/ft1_filtered_4FGL_J1150.6+4154_daily_bin142.fits evtable="EVENTS" scfile=/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits sctable="SC_DATA" expcube=/scratch/kocevski/108642/ltcube_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.fits outfile=/scratch/kocevski/108642/expmap_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.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/108642/ltcube_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.fits
.....................!
real 193.49
user 185.52
sys 5.27

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/108642/ft1_filtered_4FGL_J1150.6+4154_daily_bin142.fits scfile=/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits outfile=/scratch/kocevski/108642/cmap_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.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.66
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/108642/ft1_filtered_4FGL_J1150.6+4154_daily_bin142.fits scfile=/scratch/kocevski/108642/ft2_4FGL_J1150.6+4154_daily_bin142.fits outfile=/scratch/kocevski/108642/cmap_HighResolution_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.806       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1941       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9788       1.0000         .10000E-03   10000.    
     6 'norm      '    2.0516       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3042       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2920       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.162       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1711       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .23531E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .43588       1.0000         .10000E-03   10000.    
    14 'norm      '    21.411       1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.781       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4387       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17641E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.6961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.6728       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0112       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0027       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=   6964.534     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     3234 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.834        89.603        .75974E-04   -.96667E-05
   2  norm          2.1941        .39304        .21353E-04   -.33968E-03
   3  Prefactor     .10000E-03    9.2117        .18142E-02** at limit **
   4  Prefactor     .10000E-03    5.1541        .18142E-02** at limit **
   5  Prefactor     6.0198        223.25        .16422E-03   -.41537E-06
   6  norm          2.0523        16.970        .28860E-03    .18514E-05
   7  norm          2.3067        118.01        .27033E-03   -.11060E-04
   8  Prefactor     2.2914        3.0933        .13398E-03   -.46413E-04
   9  Prefactor     34.167        47.444        .68562E-04   -.96174E-05
  10  norm          2.1704        2.5587        .12792E-03   -.35281E-04
  11  Prefactor     .10000E-03    2.2261        .12107E-02** at limit **
  12  Prefactor     .10001E-03    37.207        .12020    ** at limit **
  13  norm          .43536        .94711        .10469E-03   -.39920E-03
  14  norm          21.415        10.238        .86562E-04   -.15918E-03
  15  Prefactor     30.778        24.673        .72218E-04   -.29438E-04
  16  Prefactor     1.4388        2.5814        .17147E-03   -.94150E-05
  17  Prefactor     .10000E-03    245.11        .36285E-03** at limit **
  18  Prefactor     .10000E-03    5.4853        .18142E-02** at limit **
  19  Prefactor     8.7082        23.608        .13593E-03   -.62895E-04
  20  Prefactor     .10000E-03    11.924        .32773E-02** at limit **
  21  norm          .10000E-03    2.1230        .11845E-02** at limit **
  22  Prefactor     2.6751        12.878        .12464E-02   -.10827E-04
  23  Normalizat    1.0112        .19001        .23218E-03   -.38531E-03
  24  Prefactor     1.0026        .22405        .28527E-03   -.21907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8338
  norm       = 2.19415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.0198
  norm       = 2.05235
  norm       = 2.3067
  Prefactor  = 2.29143
  Prefactor  = 34.1665
  norm       = 2.17042
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.435357
  norm       = 21.4148
  Prefactor  = 30.7782
  Prefactor  = 1.43879
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 8.70816
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 2.67513
  Normalizat = 1.01122
  Prefactor  = 1.0026
 **********
 **   18 **HESSE 
 **********

 FCN=   6964.534     FROM HESSE     STATUS=OK           385 CALLS     3619 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.834        89.600        .15195E-04   -1.4652    
   2  norm          2.1941        .39303        .85412E-06   -1.5412    
   3  Prefactor     .10000E-03    9.2137        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.1544        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0198        223.05        .65687E-05   -1.5217    
   6  norm          2.0523        16.962        .11544E-04   -1.5421    
   7  norm          2.3067        117.99        .10813E-04   -1.5404    
   8  Prefactor     2.2914        3.0921        .53594E-05   -1.5405    
   9  Prefactor     34.167        47.422        .27425E-05   -1.4538    
  10  norm          2.1704        2.5580        .51170E-05   -1.5413    
  11  Prefactor     .10000E-03    2.2264        .24214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    35.833        .12313       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .43536        .94572        .41875E-05   -1.5576    
  14  norm          21.415        10.238        .34625E-05   -1.4782    
  15  Prefactor     30.778        24.665        .28887E-05   -1.4598    
  16  Prefactor     1.4388        2.5811        .68586E-05   -1.5468    
  17  Prefactor     .10000E-03    245.11        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7082        23.603        .54371E-05   -1.5118    
  20  Prefactor     .10000E-03    12.017        .65546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.1231        .23689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.6751        12.869        .49855E-04   -1.5381    
  23  Normalizat    1.0112        .19016        .46435E-04   -.92656    
  24  Prefactor     1.0026        .22426        .11411E-04   -.92643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96289e-10
Minuit parameter uncertainties:
  1  90.0379
  2  0.393028
  3  2.92417e-06
  4  4.06913e-08
  5  73.5835
  6  11.8046
  7  33.063
  8  3.09229
  9  47.4745
  10  2.55816
  11  6.53345e-06
  12  0.000939857
  13  0.945757
  14  10.2389
  15  24.6734
  16  2.58128
  17  0.0019688
  18  3.63956e-06
  19  23.6285
  20  0.000459072
  21  6.50191e-06
  22  11.7385
  23  0.190289
  24  0.224474
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  2.141e+01  1.024e+01  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.003e+00  2.245e-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.011e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 28.45
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 2.72e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 4.83e-05 +/- 2.31e-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) = 6963.47147334
delta logL = 1.06296551816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6963.42421225
delta logL = 1.11022660952

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.981       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0796       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0128       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=   6963.424     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      218 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.977        9.2525        .23613E-02   -.35633E-04
   2  alpha         1.0789        .30184        .27512       -.20261E-04
   3  Normalizat    1.0117        .15116        .45245E-01    .65849E-04
   4  Prefactor     1.0124        .18619        .64272E-01    .66710E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9768
  alpha      = 1.07892
  Normalizat = 1.01169
  Prefactor  = 1.0124
 **********
 **   18 **HESSE 
 **********

 FCN=   6963.424     FROM HESSE     STATUS=OK            33 CALLS      251 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.977        10.940        .94452E-04   -1.4860    
   2  alpha         1.0789        .36631        .11830E-01   -.60460    
   3  Normalizat    1.0117        .17977        .23215E-03   -.92640    
   4  Prefactor     1.0124        .22144        .28427E-03   -.92317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70081e-10
Minuit parameter uncertainties:
  1  10.9409
  2  0.368279
  3  0.179874
  4  0.221637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/108642': 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) = 6963.42420842
delta logL = 1.1102304326

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.798e+01  1.094e+01  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.079e+00  3.683e-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.012e+00  2.216e-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.012e+00  1.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 30.65
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.08 +/- 0.37
Photon Flux (Free Index): 1.61e-08 +/- 9.79e-09
Energy Flux (Free Index): 1.12e-04 +/- 8.39e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/108642/cmap_HighResolution_276134401_276393601_4FGL_J1150.6+4154_daily_bin142.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.72e-08', energy_flux2='1.12e-04', photon_flux_error='1.30e-08', dlogl='1.11e+00', energy_flux='4.83e-05', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-04 13:19:41.005858', photon_index_error2='0.37', photon_index2='1.08', ts='28.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.39e-05', EG='1.01', time_epoch_completed='1630786781.01', return_code='0', job_id='108642', GAL2='1.01', EG2='1.01', return_code2='0', energy_flux_error='2.31e-05', photon_flux_error2='9.79e-09', ts2='30.65', photon_index='1.62' WHERE bin_id='142' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:19:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 108642: <4FGL_J1150.6+4154_daily_bin142> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin142> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 13:06:20 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:06:23 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:06:23 2021
Terminated at Sat Sep  4 13:19:43 2021
Results reported at Sat Sep  4 13:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin142 177.656 41.9096 276134401 276393601 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 :                                   781.11 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            803 sec.

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

