/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7388
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin8
RA = 177.603, Dec = 24.3016
tmin = 241401601, tmax = 241660801
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='99245', job_status='RUN', time_executed='2021-09-04 12:38:39.162442', time_epoch_executed='1630784319.16' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='8'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99245

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99245/ft1_4FGL_J1150.4+2418_daily_bin8.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99245/ft1_4FGL_J1150.4+2418_daily_bin8.fits outfile=/scratch/kocevski/99245/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin8.fits ra=177.603 dec=24.3016 rad=12.0 tmin=241401601.0 tmax=241660801.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 1.46
user 1.27
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.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/99245/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin8.fits evtable="EVENTS" outfile="/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.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.52
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits" evtable="EVENTS" scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits sctable="SC_DATA" outfile=/scratch/kocevski/99245/ltcube_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.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/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits
.....................!
real 14.51
user 14.03
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits sctable="SC_DATA" expcube=/scratch/kocevski/99245/ltcube_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits outfile=/scratch/kocevski/99245/expmap_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.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/99245/ltcube_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits
.....................!
real 194.85
user 188.37
sys 5.73

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1150.4+2418 @ 177.603 24.3016

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits outfile=/scratch/kocevski/99245/cmap_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.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.603 yref=24.3016 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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits outfile=/scratch/kocevski/99245/cmap_HighResolution_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.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.603 yref=24.3016 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits evtable="EVENTS" scfile=/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/99245/Model_4FGL_J1150.4+2418_daily_bin8.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/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits.....................!
real 70.83
user 69.32
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits', '/scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits', expMap='/scratch/kocevski/99245/expmap_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits', expCube='/scratch/kocevski/99245/ltcube_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/99245/Model_4FGL_J1150.4+2418_daily_bin8.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.4+2418'

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.344e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/99245/ft1_filtered_4FGL_J1150.4+2418_daily_bin8.fits
Spacecraft file(s): /scratch/kocevski/99245/ft2_4FGL_J1150.4+2418_daily_bin8.fits
Exposure map: /scratch/kocevski/99245/expmap_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits
Exposure cube: /scratch/kocevski/99245/ltcube_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/99245/Model_4FGL_J1150.4+2418_daily_bin8.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8019.62551631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8226       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2362       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4811       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10625E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3274       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8703       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5695       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10998E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.6454       1.0000         .10000E-03   10000.    
    18 'norm      '    .12766E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.0926       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8344       1.0000         .10000E-03   10000.    
    22 'norm      '    .20709       1.0000         .10000E-03   10000.    
    23 'norm      '    5.2560       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .94710       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2184       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8018.587     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2688 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8225        2.0631       -.18507E-07    .11493E-03
   2  Prefactor     .10000E-03    5.5540        .16412E-06** at limit **
   3  norm          12.759        11.767       -.16570E-06    .23313E-03
   4  Prefactor     .10000E-03    4.4165        .11444E-06** at limit **
   5  Prefactor     1.2286        45.953        .15767E-04   -.18509E-03
   6  Prefactor     6.4821        28.068        .32849E-06    .92440E-06
   7  Prefactor     .10001E-03    37.514        .15065E-05** at limit **
   8  Prefactor     .10000E-03    2.4522       -.69666E-06** at limit **
   9  Prefactor     .10000E-03    19.902        .28968E-07** at limit **
  10  Prefactor     .10000E-03    3.2563        .63635E-07** at limit **
  11  Prefactor     .10000E-03    .39219        .32185E-07** at limit **
  12  Prefactor     9.3103        24.225       -.15832E-05   -.22154E-03
  13  norm          4.8701        1.4996       -.28530E-07   -.31457E-03
  14  Prefactor     2.5693        3.5569       -.75419E-07   -.28499E-03
  15  Prefactor     .10006E-03    40.075       -.53471E-05** at limit **
  16  Prefactor     .45508        2.0062        .19677E-06   -.22819E-03
  17  Prefactor     3.6449        2.7796       -.10783E-06   -.44229E-03
  18  norm          .10000E-03    1.7066        .16082E-05** at limit **
  19  Prefactor     1.9089        1.6926        .12049E-06    .21581E-03
  20  Prefactor     9.0927        2.6750        .31984E-08   -.15499E-03
  21  Prefactor     3.8344        3.5043       -.49238E-07    .26485E-03
  22  norm          .20712        .17800        .13088E-07    .11883E-03
  23  norm          5.2559        3.3911        .15992E-09   -.76091E-04
  24  Prefactor     .10000E-03    7.0451       -.51442E-07** at limit **
  25  Normalizat    .94733        .16765        .21063E-05    .47673E-03
  26  Prefactor     1.2182        .17924       -.22581E-05    .66642E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82252
  Prefactor  = 0.0001
  norm       = 12.7588
  Prefactor  = 0.0001
  Prefactor  = 1.22863
  Prefactor  = 6.48207
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.31025
  norm       = 4.87007
  Prefactor  = 2.56931
  Prefactor  = 0.000100059
  Prefactor  = 0.455075
  Prefactor  = 3.64493
  norm       = 0.000100001
  Prefactor  = 1.90889
  Prefactor  = 9.0927
  Prefactor  = 3.83436
  norm       = 0.207122
  norm       = 5.2559
  Prefactor  = 0.0001
  Normalizat = 0.947334
  Prefactor  = 1.21818
 **********
 **   18 **HESSE 
 **********

 FCN=   8018.587     FROM HESSE     STATUS=OK           466 CALLS     3154 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8225        2.0541        .13227E-03   -1.5438    
   2  Prefactor     .10000E-03    5.6360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.759        11.825        .11213E-03   -1.4993    
   4  Prefactor     .10000E-03    4.4388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2286        54.072        .20190E-02   -1.5486    
   6  Prefactor     6.4821        28.092        .15765E-03   -1.5199    
   7  Prefactor     .10001E-03    39.451        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.5297        .13818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.2706        .15779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .39575        .54743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3103        24.627        .13122E-03   -1.5098    
  13  norm          4.8701        1.4999        .57157E-04   -1.5267    
  14  Prefactor     2.5693        3.4908        .18175E-03   -1.5387    
  15  Prefactor     .10006E-03    43.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .45508        3.2489        .20704E-02   -1.5573    
  17  Prefactor     3.6449        2.6872        .11294E-03   -1.5326    
  18  norm          .10000E-03    6.8513        .18609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.9089        1.6319        .10160E-03   -1.5432    
  20  Prefactor     9.0927        2.6485        .74421E-04   -1.5105    
  21  Prefactor     3.8344        3.5047        .77079E-03   -1.5316    
  22  norm          .20712        .16846        .33112E-03   -1.5617    
  23  norm          5.2559        3.3891        .12715E-03   -1.5249    
  24  Prefactor     .10000E-03    7.1486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .94733        .20524        .26796E-03   -.94816    
  26  Prefactor     1.2182        .21317        .26499E-03   -.85774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08262e-08
Minuit parameter uncertainties:
  1  2.0542
  2  2.27201e-05
  3  11.8273
  4  1.76219e-05
  5  16.3165
  6  27.0098
  7  0.00114477
  8  8.69539e-05
  9  1.4787e-05
  10  6.8172e-06
  11  1.26039e-06
  12  24.6543
  13  1.49995
  14  3.49109
  15  0.00320097
  16  2.43179
  17  2.68727
  18  0.000153937
  19  1.63195
  20  2.64857
  21  3.50489
  22  0.168457
  23  3.3892
  24  2.88085e-05
  25  0.205411
  26  0.213326
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.260e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.218e+00  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.473e-01  2.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 3.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99245/likelihoodResults_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.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): 102
logL (Free Index) = 8018.58711448
delta logL = -4.46582016593e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8018.58706715
delta logL = 2.66708775598e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1957       1.0000          .0000       10.000    
     3 'Normalizat'    .94735       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2182       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8018.587     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      218 TOTAL
                     EDM=   .77E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7129        .90712E-02** at limit **
   2  Index         1.8048        7.4678        .50000       -.22114E-06
   3  Normalizat    .94733        .77294E-02    .45504E-01    .81720E-04
   4  Prefactor     1.2182        .85828E-02    .59920E-01    .31883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80481
  Normalizat = 0.947331
  Prefactor  = 1.21819
 **********
 **   18 **HESSE 
 **********

 FCN=   8018.587     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      251 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.401        .59285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8048        6.2170        .50000       -.69325    
   3  Normalizat    .94733        .35037E-01    .26796E-03   -.94816    
   4  Prefactor     1.2182        .38895E-01    .26499E-03   -.85773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.37746e-10
Minuit parameter uncertainties:
  1  2.60685e-05
  2  287.894
  3  0.0350378
  4  0.0388957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99245': 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) = 8018.58705178
delta logL = 1.80398046723e-05

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.607e-05  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.805e+00  2.879e+02  0.000e+00  1.000e+01 (-1.000e+00)
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.218e+00  3.890e-02  0.000e+00  1.000e+01 ( 1.000e+00)
611        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
612        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.473e-01  3.504e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

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/99245/cmap_HighResolution_241401601_241660801_4FGL_J1150.4+2418_daily_bin8.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-03', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-09-04 12:53:02.038436', job_id='99245', GAL2='1.22', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630785182.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='1.80e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='8' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:53:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 99245: <4FGL_J1150.4+2418_daily_bin8> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin8> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:42 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 12:36:43 2021
Terminated at Sat Sep  4 12:53:02 2021
Results reported at Sat Sep  4 12:53:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin8 177.603 24.3016 241401601 241660801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.4+2418 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   859.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            980 sec.

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

