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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1003
RA = 177.603, Dec = 24.3016
tmin = 499305601, tmax = 499564801
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='105385', job_status='RUN', time_executed='2021-09-04 12:57:29.796185', time_epoch_executed='1630785449.8' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1003'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105385

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105385/ft1_4FGL_J1150.4+2418_daily_bin1003.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105385/ft1_4FGL_J1150.4+2418_daily_bin1003.fits outfile=/scratch/kocevski/105385/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1003.fits ra=177.603 dec=24.3016 rad=12.0 tmin=499305601.0 tmax=499564801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.42
user 5.15
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.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/105385/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1003.fits evtable="EVENTS" outfile="/scratch/kocevski/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits" evtable="EVENTS" scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits sctable="SC_DATA" outfile=/scratch/kocevski/105385/ltcube_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.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/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits
.....................!
real 12.79
user 12.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits sctable="SC_DATA" expcube=/scratch/kocevski/105385/ltcube_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.fits outfile=/scratch/kocevski/105385/expmap_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.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/105385/ltcube_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.fits
.....................!
real 189.56
user 185.23
sys 3.97

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/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits outfile=/scratch/kocevski/105385/cmap_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits outfile=/scratch/kocevski/105385/cmap_HighResolution_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.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/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits evtable="EVENTS" scfile=/scratch/kocevski/105385/ft2_4FGL_J1150.4+2418_daily_bin1003.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105385/Model_4FGL_J1150.4+2418_daily_bin1003.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/105385/ft1_filtered_4FGL_J1150.4+2418_daily_bin1003.fits.....................!
real 44.99
user 43.47
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60363       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6510       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10330E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5084       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2885       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.273       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13218E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.8252       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10516E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.3530       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.389       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11359E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1779       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89526       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=   4435.919     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     2724 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60394        1.9014       -.53994E-06   -.12149E-02
   2  Prefactor     .10000E-03    2.0145       -.32519E-07** at limit **
   3  norm          9.6543        13.986        .13045E-06   -.10774E-04
   4  Prefactor     .10000E-03    5.3335       -.17390E-05** at limit **
   5  Prefactor     7.5954        22.490        .17395E-05   -.14110E-04
   6  Prefactor     .10000E-03    113.51       -.10405E-04** at limit **
   7  Prefactor     .10000E-03    7.5402        .93344E-06** at limit **
   8  Prefactor     .10000E-03    8.9169       -.15911E-05** at limit **
   9  Prefactor     .10000E-03    12.412       -.76092E-05** at limit **
  10  Prefactor     .10000E-03    6.5588       -.57382E-05** at limit **
  11  Prefactor     1.5081        1.9085       -.60957E-07   -.32560E-03
  12  Prefactor     .10000E-03    15.352        .14593E-04** at limit **
  13  norm          6.2886        2.1308        .15174E-07   -.72389E-05
  14  Prefactor     .10000E-03    3.7671        .12589E-06** at limit **
  15  Prefactor     .10000E-03    18.891       -.10093E-04** at limit **
  16  Prefactor     10.272        4.7760       -.79662E-06   -.68402E-03
  17  Prefactor     .10000E-03    7.7197        .42727E-05** at limit **
  18  norm          2.8279        2.7884        .15126E-06   -.29450E-04
  19  Prefactor     .10000E-03    1.8884        .20393E-06** at limit **
  20  Prefactor     7.3575        3.9743       -.52709E-06   -.40994E-03
  21  Prefactor     .10000E-03    5.7692        .45229E-05** at limit **
  22  norm          .10000E-03    .26706        .14468E-07** at limit **
  23  norm          10.393        7.1930        .14163E-06   -.25180E-03
  24  Prefactor     .10000E-03    49.096        .54737E-05** at limit **
  25  Normalizat    1.1777        .22951        .42567E-06   -.14142E-03
  26  Prefactor     .89546        .22847       -.30576E-06   -.90722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.603938
  Prefactor  = 0.0001
  norm       = 9.65433
  Prefactor  = 0.0001
  Prefactor  = 7.59542
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.50815
  Prefactor  = 0.0001
  norm       = 6.28861
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2716
  Prefactor  = 0.0001
  norm       = 2.82788
  Prefactor  = 0.0001
  Prefactor  = 7.35749
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.3926
  Prefactor  = 0.0001
  Normalizat = 1.17766
  Prefactor  = 0.895456
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.919     FROM HESSE     STATUS=OK           458 CALLS     3182 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60394        1.7009        .15946E-02   -1.5553    
   2  Prefactor     .10000E-03    2.0159        .92320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.6543        14.044        .12899E-03   -1.5086    
   4  Prefactor     .10000E-03    5.3515        .15018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.5954        22.520        .14525E-03   -1.5157    
   6  Prefactor     .10000E-03    114.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.5457        .17853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.1759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5600        .16614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.5081        1.8827        .99544E-04   -1.5462    
  12  Prefactor     .10000E-03    15.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2886        2.1335        .53960E-04   -1.5206    
  14  Prefactor     .10000E-03    3.8356        .12604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.272        4.7891        .92966E-04   -1.5067    
  17  Prefactor     .10000E-03    7.9781        .35937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8279        2.7554        .10496E-03   -1.5372    
  19  Prefactor     .10000E-03    3.1606        .17450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.3575        3.9610        .91137E-04   -1.5165    
  21  Prefactor     .10000E-03    5.7897        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.3245        .65137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.393        7.1750        .12431E-03   -1.5063    
  24  Prefactor     .10000E-03    51.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1777        .27894        .24744E-03   -.87296    
  26  Prefactor     .89546        .27741        .29386E-03   -.96300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41023e-10
Minuit parameter uncertainties:
  1  1.70102
  2  9.55102e-08
  3  14.0484
  4  1.91363e-06
  5  22.545
  6  0.000114184
  7  9.67038e-06
  8  7.30891e-06
  9  6.13243e-06
  10  1.26903e-05
  11  1.88279
  12  1.01115e-05
  13  2.13355
  14  2.0026e-05
  15  3.59542e-06
  16  4.7893
  17  4.23378e-05
  18  2.75554
  19  9.23326e-06
  20  3.9611
  21  4.31798e-06
  22  5.98835e-06
  23  7.1756
  24  6.27778e-05
  25  0.279289
  26  0.27785
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.508e+00  1.883e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  8.955e-01  2.778e-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.178e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.93
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105385/likelihoodResults_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.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) = 4435.9077988
delta logL = 0.0107170005713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4435.90509794
delta logL = 0.0134178583739

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6648       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1111       1.0000          .0000       10.000    
     3 'Normalizat'    1.1801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89362       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=   4435.905     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6633        74.172        .81715E-02    .35912E-03
   2  Index         2.1113        5.8772        .23459        .30200E-04
   3  Normalizat    1.1800        .73684E-01    .55907E-01    .44864E-05
   4  Prefactor     .89367        .75207E-01    .66489E-01    .10774E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66329
  Index      = 2.11133
  Normalizat = 1.18003
  Prefactor  = 0.89367
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.905     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6633        2.2331        .10361E-03   -1.5450    
   2  Index         2.1113        .70781        .80151E-02   -.61595    
   3  Normalizat    1.1800        .26050        .24722E-03   -.87222    
   4  Prefactor     .89367        .27527        .29411E-03   -.96363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50436e-10
Minuit parameter uncertainties:
  1  2.23318
  2  0.711403
  3  0.260789
  4  0.275702
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105385': 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) = 4435.90509768
delta logL = 0.0134181254352

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.663e+00  2.233e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.111e+00  7.114e-01  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:  8.937e-01  2.757e-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.180e+00  2.608e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.93
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/105385/cmap_HighResolution_499305601_499564801_4FGL_J1150.4+2418_daily_bin1003.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-04 13:07:54.013333', job_id='105385', GAL2='0.89', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630786074.01', return_code2='0', ts='0.93', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.34e-02', ts2='0.96', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1003' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:07:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 105385: <4FGL_J1150.4+2418_daily_bin1003> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1003 177.603 24.3016 499305601 499564801 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 :                                   621.29 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            702 sec.

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

