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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin828
RA = 177.656, Dec = 41.9096
tmin = 453945601, tmax = 454204801
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='112209', job_status='RUN', time_executed='2021-09-04 13:16:51.886444', time_epoch_executed='1630786611.89' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/112209

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/112209/ft1_4FGL_J1150.6+4154_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/112209/ft2_4FGL_J1150.6+4154_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/112209/ft1_4FGL_J1150.6+4154_daily_bin828.fits outfile=/scratch/kocevski/112209/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin828.fits ra=177.656 dec=41.9096 rad=12.0 tmin=453945601.0 tmax=454204801.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.03
user 3.81
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/112209/ft2_4FGL_J1150.6+4154_daily_bin828.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/112209/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin828.fits evtable="EVENTS" outfile="/scratch/kocevski/112209/ft1_filtered_4FGL_J1150.6+4154_daily_bin828.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/112209/ft1_filtered_4FGL_J1150.6+4154_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/112209/ft2_4FGL_J1150.6+4154_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/112209/ltcube_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.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/112209/ft2_4FGL_J1150.6+4154_daily_bin828.fits
.....................!
real 12.36
user 12.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/112209/ft1_filtered_4FGL_J1150.6+4154_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/112209/ft2_4FGL_J1150.6+4154_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/112209/ltcube_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.fits outfile=/scratch/kocevski/112209/expmap_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.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/112209/ltcube_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.fits
.....................!
real 191.42
user 186.03
sys 4.76

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/112209/ft1_filtered_4FGL_J1150.6+4154_daily_bin828.fits scfile=/scratch/kocevski/112209/ft2_4FGL_J1150.6+4154_daily_bin828.fits outfile=/scratch/kocevski/112209/cmap_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.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.54
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28710E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0121       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.2703       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11619E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5908       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.675       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0321       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    60.467       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29445E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90078       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1046       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=   5678.431     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2707 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    280.39       -.12990E-03** at limit **
   2  norm          1.0121        .32005        .12652E-07    .78684E-04
   3  Prefactor     13.987        16.416       -.34161E-06   -.36309E-04
   4  Prefactor     .10000E-03    6.5501        .43982E-05** at limit **
   5  Prefactor     .10000E-03    30.952        .15172E-04** at limit **
   6  norm          6.2745        15.754       -.21818E-06   -.64894E-04
   7  norm          .10000E-03    15.380        .33077E-05** at limit **
   8  Prefactor     .10000E-03    1.8935        .12267E-06** at limit **
   9  Prefactor     .10000E-03    51.627       -.31666E-05** at limit **
  10  norm          .10000E-03    .96372       -.61133E-07** at limit **
  11  Prefactor     3.5929        4.7439       -.13885E-05   -.34418E-03
  12  Prefactor     15.681        41.596        .10620E-04    .86342E-05
  13  norm          2.0321        1.1946       -.31184E-06   -.22216E-03
  14  norm          .10000E-03    4.7670        .70130E-07** at limit **
  15  Prefactor     60.471        36.810        .28783E-05    .54136E-04
  16  Prefactor     .10005E-03    1.3786        .19309E-06** at limit **
  17  Prefactor     .10000E-03    25.923       -.40212E-05** at limit **
  18  Prefactor     .10000E-03    6.4403       -.41907E-05** at limit **
  19  Prefactor     .10000E-03    24.010       -.98280E-05** at limit **
  20  Prefactor     .10000E-03    11.218        .10431E-06** at limit **
  21  norm          .10000E-03    4.3515       -.53898E-07** at limit **
  22  Prefactor     .10000E-03    9.9671       -.11908E-05** at limit **
  23  Normalizat    .90075        .17355       -.66860E-06    .25928E-03
  24  Prefactor     1.1048        .20424        .16145E-06    .13968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.01214
  Prefactor  = 13.9872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.27448
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.59287
  Prefactor  = 15.6812
  norm       = 2.03213
  norm       = 0.0001
  Prefactor  = 60.4709
  Prefactor  = 0.000100046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.900753
  Prefactor  = 1.10475
 **********
 **   18 **HESSE 
 **********

 FCN=   5678.431     FROM HESSE     STATUS=OK           399 CALLS     3106 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    279.76        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0121        .32078        .22680E-04   -1.5507    
   3  Prefactor     13.987        16.387        .10711E-03   -1.4960    
   4  Prefactor     .10000E-03    6.5557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    30.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.2745        15.645        .16031E-03   -1.5207    
   7  norm          .10000E-03    15.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.0565        .19712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .97565        .72114E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5929        4.7058        .17876E-03   -1.5329    
  12  Prefactor     15.681        41.486        .10116E-03   -1.4916    
  13  norm          2.0321        1.1866        .57138E-04   -1.5423    
  14  norm          .10000E-03    4.7988        .16065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     60.471        36.871        .51598E-04   -1.4151    
  16  Prefactor     .10005E-03    3.5964        .30824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.4463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    4.3874        .15347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.9814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90075        .20658        .24502E-03   -.96434    
  24  Prefactor     1.1048        .24308        .26871E-03   -.89315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46602e-10
Minuit parameter uncertainties:
  1  0.00145844
  2  0.320785
  3  16.3922
  4  4.82804e-07
  5  9.77306e-07
  6  15.6549
  7  2.34992e-07
  8  1.26344e-05
  9  1.15359e-05
  10  5.22534e-06
  11  4.70624
  12  41.5627
  13  1.18665
  14  3.05768e-07
  15  36.8851
  16  0.000817025
  17  2.29741e-07
  18  9.83436e-07
  19  3.94848e-05
  20  3.61689e-07
  21  3.50286e-06
  22  4.39465e-06
  23  0.206762
  24  0.243324
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  3.058e-07  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.105e+00  2.433e-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:  9.008e-01  2.068e-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.46e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.35e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/112209/likelihoodResults_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.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) = 5678.43197129
delta logL = -0.000985470615888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5678.43098582
delta logL = 2.59024091065e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6217       1.0000          .0000       5.0000    
     3 'Normalizat'    .90075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1048       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=   5678.431     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      232 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    821.41        .16070E-02** at limit **
   2  alpha         1.6723        2.7998        .17975       -.77160E-08
   3  Normalizat    .90075        .79042E-01    .24502E-03   -.83519E-06
   4  Prefactor     1.1048        .95419E-01    .26871E-03   -.28770E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.67227
  Normalizat = 0.900751
  Prefactor  = 1.10475
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8157        .32140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6723        3.1818        .71901E-02   -.33746    
   3  Normalizat    .90075        .20024        .98007E-05   -.96434    
   4  Prefactor     1.1048        .24169        .10748E-04   -.89315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39492e-12
Minuit parameter uncertainties:
  1  8.84722e-06
  2  211.602
  3  0.200406
  4  0.241926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/112209': 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) = 5678.43098579
delta logL = 3.24844222632e-08

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  8.847e-06  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.672e+00  2.116e+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:  1.105e+00  2.419e-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:  9.008e-01  2.004e-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/112209/cmap_HighResolution_453945601_454204801_4FGL_J1150.6+4154_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', job_status='DONE', photon_flux_upper_limit='2.46e-08', time_completed='2021-09-04 13:28:42.409209', job_id='112209', GAL2='1.10', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630787322.41', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='3.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='828' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:28:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 112209: <4FGL_J1150.6+4154_daily_bin828> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin828> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 13:16:36 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:16:38 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:16:38 2021
Terminated at Sat Sep  4 13:28:43 2021
Results reported at Sat Sep  4 13:28:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin828 177.656 41.9096 453945601 454204801 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 :                                   707.43 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

