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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1152
RA = 177.603, Dec = 24.3016
tmin = 537926401, tmax = 538185601
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='105609', job_status='RUN', time_executed='2021-09-04 12:56:48.597757', time_epoch_executed='1630785408.6' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105609/ft1_4FGL_J1150.4+2418_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105609/ft1_4FGL_J1150.4+2418_daily_bin1152.fits outfile=/scratch/kocevski/105609/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1152.fits ra=177.603 dec=24.3016 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.46
user 6.18
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.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/105609/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.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/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/105609/ltcube_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.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/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits
.....................!
real 11.69
user 11.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/105609/ltcube_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits outfile=/scratch/kocevski/105609/expmap_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.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/105609/ltcube_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits
.....................!
real 190.65
user 185.61
sys 4.65

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/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits scfile=/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits outfile=/scratch/kocevski/105609/cmap_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits scfile=/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits outfile=/scratch/kocevski/105609/cmap_HighResolution_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits', '/scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits', expMap='/scratch/kocevski/105609/expmap_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits', expCube='/scratch/kocevski/105609/ltcube_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/105609/Model_4FGL_J1150.4+2418_daily_bin1152.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/105609/ft1_filtered_4FGL_J1150.4+2418_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/105609/ft2_4FGL_J1150.4+2418_daily_bin1152.fits
Exposure map: /scratch/kocevski/105609/expmap_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits
Exposure cube: /scratch/kocevski/105609/ltcube_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/105609/Model_4FGL_J1150.4+2418_daily_bin1152.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) = 3116.6473135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4833       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12524E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11165E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.062       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11249E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.993       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    19.938       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .40422       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.1815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.523       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .60658       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=   3116.642     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3087 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.4832        4.6207       -.34845E-06   -.78655E-04
   2  Prefactor     .10000E-03    7.1863       -.16215E-05** at limit **
   3  norm          .10000E-03    12.500       -.97281E-05** at limit **
   4  Prefactor     .10001E-03    57.246       -.61055E-04** at limit **
   5  Prefactor     .10000E-03    47.871        .15064E-04** at limit **
   6  Prefactor     60.026        61.704       -.40222E-04    .44373E-04
   7  Prefactor     .10000E-03    38.081        .49889E-04** at limit **
   8  Prefactor     11.105        9.0947       -.12055E-05   -.35649E-03
   9  Prefactor     48.990        35.741       -.28874E-05   -.76294E-04
  10  Prefactor     .10000E-03    11.683        .11480E-04** at limit **
  11  Prefactor     .10000E-03    1.2194        .11270E-07** at limit **
  12  Prefactor     .10000E-03    25.739       -.19404E-04** at limit **
  13  norm          19.938        3.8871       -.73003E-07   -.14531E-03
  14  Prefactor     .10000E-03    2.0528       -.76342E-07** at limit **
  15  Prefactor     55.965        47.084        .25616E-05    .33885E-04
  16  Prefactor     .10000E-03    4.8301        .10907E-05** at limit **
  17  Prefactor     .10000E-03    3.1483       -.59477E-06** at limit **
  18  norm          .40138        4.6813       -.16608E-05   -.30082E-03
  19  Prefactor     .10000E-03    3.3549        .59432E-06** at limit **
  20  Prefactor     7.1835        5.2763       -.10590E-06    .24423E-03
  21  Prefactor     .10000E-03    4.3182       -.10214E-05** at limit **
  22  norm          .10000E-03    .12919       -.34233E-07** at limit **
  23  norm          .10000E-03    2.5242       -.82877E-07** at limit **
  24  Prefactor     20.526        22.700        .83614E-06    .49104E-04
  25  Normalizat    1.2635        .25806        .28191E-05    .19276E-03
  26  Prefactor     .60632        .25099        .54823E-05    .21784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.48317
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100002
  Prefactor  = 60.0257
  Prefactor  = 0.000100003
  Prefactor  = 11.1049
  Prefactor  = 48.9902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.9382
  Prefactor  = 0.0001
  Prefactor  = 55.9651
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.401383
  Prefactor  = 0.0001
  Prefactor  = 7.18348
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 20.526
  Normalizat = 1.26351
  Prefactor  = 0.606325
 **********
 **   18 **HESSE 
 **********

 FCN=   3116.642     FROM HESSE     STATUS=OK           448 CALLS     3535 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.4832        4.6344        .97507E-04   -1.5199    
   2  Prefactor     .10000E-03    7.2301        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    12.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    58.550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.026        61.846        .51771E-04   -1.4157    
   7  Prefactor     .10000E-03    38.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     11.105        9.1399        .12021E-03   -1.5041    
   9  Prefactor     48.990        35.913        .57290E-04   -1.4307    
  10  Prefactor     .10000E-03    11.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2233        .60142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          19.938        3.8872        .46041E-04   -1.4815    
  14  Prefactor     .10000E-03    2.0592        .78105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     55.965        47.087        .53623E-04   -1.4210    
  16  Prefactor     .10000E-03    5.0278        .23908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2396        .19330E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .40138        8.2437        .21840E-02   -1.5581    
  19  Prefactor     .10000E-03    3.3781        .99288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.1835        5.1949        .95902E-04   -1.5172    
  21  Prefactor     .10000E-03    4.3259        .11330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .13856        .39072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.5268        .86624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.526        22.688        .88413E-04   -1.4802    
  25  Normalizat    1.2635        .30296        .23726E-03   -.84662    
  26  Prefactor     .60632        .29173        .33492E-03   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.97976e-10
Minuit parameter uncertainties:
  1  4.63469
  2  2.92137e-05
  3  2.63816e-05
  4  0.00138391
  5  0.000665127
  6  61.9121
  7  0.000633479
  8  9.14108
  9  35.9285
  10  2.11244e-05
  11  1.68677e-07
  12  5.45575e-05
  13  3.88725
  14  6.73956e-06
  15  47.1185
  16  8.08999e-05
  17  3.32087e-05
  18  3.63818
  19  4.95268e-06
  20  5.19519
  21  9.35955e-06
  22  2.16646e-06
  23  4.97578e-06
  24  22.6972
  25  0.303383
  26  0.29246
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.687e-07  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:  6.063e-01  2.925e-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:  1.264e+00  3.034e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105609/likelihoodResults_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.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) = 3116.64524214
delta logL = -0.00350176972188

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3116.64174008
delta logL = 2.89524905384e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2143       1.0000          .0000       10.000    
     3 'Normalizat'    1.2635       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60633       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3116.642     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      256 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.627        .60716E-02** at limit **
   2  Index         1.7623        8.3765        .50000       -.18335E-06
   3  Normalizat    1.2635        .22721E-01    .23726E-03   -.16650E-03
   4  Prefactor     .60632        .23084E-01    .33492E-03   -.10696E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76233
  Normalizat = 1.26351
  Prefactor  = 0.606321
 **********
 **   18 **HESSE 
 **********

 FCN=   3116.642     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    213.73        .65621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7623        5.7184        .50000       -.70434    
   3  Normalizat    1.2635        .10031        .47452E-04   -.84662    
   4  Prefactor     .60632        .10183        .13397E-04   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.31525e-09
Minuit parameter uncertainties:
  1  0.00012739
  2  983.463
  3  0.100327
  4  0.101861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105609': 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) = 3116.64173398
delta logL = 6.38525034447e-06

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.274e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.762e+00  9.835e+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:  6.063e-01  1.019e-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:  1.264e+00  1.003e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105609/cmap_HighResolution_537926401_538185601_4FGL_J1150.4+2418_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.99e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 13:06:13.406407', job_id='105609', GAL2='0.61', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1630785973.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='6.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1152' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:06:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 105609: <4FGL_J1150.4+2418_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1152> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:29 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:30 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:56:30 2021
Terminated at Sat Sep  4 13:06:14 2021
Results reported at Sat Sep  4 13:06:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1152 177.603 24.3016 537926401 538185601 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 :                                   562.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             345.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   583 sec.
    Turnaround time :                            585 sec.

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

