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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin471
RA = 177.656, Dec = 41.9096
tmin = 361411201, tmax = 361670401
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='110581', job_status='RUN', time_executed='2021-09-04 13:11:43.880717', time_epoch_executed='1630786303.88' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110581/ft1_4FGL_J1150.6+4154_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110581/ft2_4FGL_J1150.6+4154_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110581/ft1_4FGL_J1150.6+4154_daily_bin471.fits outfile=/scratch/kocevski/110581/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin471.fits ra=177.656 dec=41.9096 rad=12.0 tmin=361411201.0 tmax=361670401.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.53
user 3.29
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110581/ft1_filtered_4FGL_J1150.6+4154_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/110581/ft2_4FGL_J1150.6+4154_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/110581/ltcube_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.fits outfile=/scratch/kocevski/110581/expmap_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.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/110581/ltcube_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.fits
.....................!
real 191.03
user 185.85
sys 4.86

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/110581/ft1_filtered_4FGL_J1150.6+4154_daily_bin471.fits scfile=/scratch/kocevski/110581/ft2_4FGL_J1150.6+4154_daily_bin471.fits outfile=/scratch/kocevski/110581/cmap_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110581/ft1_filtered_4FGL_J1150.6+4154_daily_bin471.fits scfile=/scratch/kocevski/110581/ft2_4FGL_J1150.6+4154_daily_bin471.fits outfile=/scratch/kocevski/110581/cmap_HighResolution_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.1872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14433E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .30837E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    59.088       1.0000         .10000E-03   10000.    
    10 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.045       1.0000         .10000E-03   10000.    
    13 'norm      '    3.4712       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.0037       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.723       1.0000         .10000E-03   10000.    
    21 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    57.473       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0543       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84070       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=   6404.872     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2768 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.743       -.47613E-06** at limit **
   2  norm          1.9429        .37849        .12116E-07    .21634E-03
   3  Prefactor     5.1940        13.248       -.10431E-06   -.70469E-04
   4  Prefactor     .10000E-03    5.9191        .20718E-07** at limit **
   5  Prefactor     .10000E-03    36.684       -.29908E-05** at limit **
   6  norm          .10000E-03    8.3761        .16637E-07** at limit **
   7  norm          .10000E-03    93.266       -.37158E-05** at limit **
   8  Prefactor     .10000E-03    1.3032       -.14165E-06** at limit **
   9  Prefactor     59.248        45.629        .26589E-05    .55505E-04
  10  norm          .10000E-03    1.1818       -.53769E-08** at limit **
  11  Prefactor     .10000E-03    3.8031        .64959E-08** at limit **
  12  Prefactor     11.057        30.060       -.10748E-04   -.41592E-05
  13  norm          3.4714        1.2403        .24748E-06   -.18776E-03
  14  norm          .10000E-03    4.1464        .23784E-08** at limit **
  15  Prefactor     7.0038        11.719       -.14392E-05   -.80152E-03
  16  Prefactor     .10000E-03    1.3958       -.12859E-06** at limit **
  17  Prefactor     .10000E-03    13.156       -.20315E-06** at limit **
  18  Prefactor     .10000E-03    35.635        .34741E-05** at limit **
  19  Prefactor     .10000E-03    10.485        .57026E-07** at limit **
  20  Prefactor     13.722        9.0451       -.71496E-06   -.35718E-04
  21  norm          .10000E-03    3.5846       -.43059E-06** at limit **
  22  Prefactor     57.446        26.999        .70707E-05    .90293E-06
  23  Normalizat    1.0544        .16200       -.14382E-05    .12320E-03
  24  Prefactor     .84072        .18508        .69186E-06   -.42839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.94293
  Prefactor  = 5.19401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 59.2475
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0575
  norm       = 3.4714
  norm       = 0.0001
  Prefactor  = 7.00378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7223
  norm       = 0.0001
  Prefactor  = 57.4461
  Normalizat = 1.05445
  Prefactor  = 0.840721
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.872     FROM HESSE     STATUS=OK           397 CALLS     3165 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9429        .37953        .20497E-04   -1.5429    
   3  Prefactor     5.1940        13.230        .17650E-03   -1.5252    
   4  Prefactor     .10000E-03    5.9240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.4055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    94.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.986        .15965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     59.248        41.111        .52193E-04   -1.4167    
  10  norm          .10000E-03    1.7873        .16217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.9056        .30444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.057        29.959        .12055E-03   -1.5043    
  13  norm          3.4714        1.2394        .48831E-04   -1.5335    
  14  norm          .10000E-03    4.1544        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.0038        12.046        .75794E-03   -1.5179    
  16  Prefactor     .10000E-03    2.7320        .18286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.722        9.0586        .10812E-03   -1.4967    
  21  norm          .10000E-03    3.6156        .14816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     57.446        26.600        .52917E-04   -1.4191    
  23  Normalizat    1.0544        .18644        .22779E-03   -.91228    
  24  Prefactor     .84072        .21374        .29913E-03   -.98244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68385e-09
Minuit parameter uncertainties:
  1  1.30558e-05
  2  0.379526
  3  13.2374
  4  1.53332e-06
  5  1.00241e-05
  6  5.16357e-06
  7  7.1454e-05
  8  0.000262183
  9  41.1308
  10  3.22167e-06
  11  5.78267e-06
  12  30
  13  1.23946
  14  3.02049e-06
  15  12.0499
  16  1.7024e-05
  17  3.76161e-06
  18  0.000141943
  19  1.23925e-05
  20  9.05954
  21  7.74726e-05
  22  26.6055
  23  0.186554
  24  0.21395
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  8.407e-01  2.140e-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.054e+00  1.866e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110581/likelihoodResults_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.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) = 6404.87343237
delta logL = -0.00113786213751

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6404.87229454
delta logL = -2.44172042585e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6183       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84070       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=   6404.872     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      195 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    82.785        .90712E-02** at limit **
   2  alpha         1.6180        3.9187        .44973        .35613E-06
   3  Normalizat    1.0544        .18191E-01    .40267E-01    .99956E-05
   4  Prefactor     .84072        .21687E-01    .67616E-01    .21768E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.61798
  Normalizat = 1.05445
  Prefactor  = 0.840723
 **********
 **   18 **HESSE 
 **********

 FCN=   6404.872     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      226 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    803.59        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6180        2.5821        .17989       -.36057    
   3  Normalizat    1.0544        .87954E-01    .22779E-03   -.91228    
   4  Prefactor     .84072        .10472        .29913E-03   -.98244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29667e-07
Minuit parameter uncertainties:
  1  2.88261e-06
  2  3101.09
  3  0.0879663
  4  0.104746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110581': 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): 102
logL (Free Index) = 6404.87229451
delta logL = 1.67347025126e-10

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  2.883e-06  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.618e+00  3.101e+03  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:  8.407e-01  1.047e-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.054e+00  8.797e-02  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/110581/cmap_HighResolution_361411201_361670401_4FGL_J1150.6+4154_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-05', job_status='DONE', photon_flux_upper_limit='2.56e-08', time_completed='2021-09-04 13:24:24.809755', job_id='110581', GAL2='0.84', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630787064.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.67e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='471' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:24:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 110581: <4FGL_J1150.6+4154_daily_bin471> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:11:25 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:11:27 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:11:27 2021
Terminated at Sat Sep  4 13:24:25 2021
Results reported at Sat Sep  4 13:24:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin471 177.656 41.9096 361411201 361670401 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 :                                   760.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

