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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1008
RA = 177.603, Dec = 24.3016
tmin = 500601601, tmax = 500860801
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='105393', job_status='RUN', time_executed='2021-09-04 13:00:05.950341', time_epoch_executed='1630785605.95' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105393/ft1_4FGL_J1150.4+2418_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105393/ft2_4FGL_J1150.4+2418_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105393/ft1_4FGL_J1150.4+2418_daily_bin1008.fits outfile=/scratch/kocevski/105393/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1008.fits ra=177.603 dec=24.3016 rad=12.0 tmin=500601601.0 tmax=500860801.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.11
user 4.85
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105393/ft2_4FGL_J1150.4+2418_daily_bin1008.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/105393/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/105393/ft1_filtered_4FGL_J1150.4+2418_daily_bin1008.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.51
user 0.29
sys 0.18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105393/ft1_filtered_4FGL_J1150.4+2418_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/105393/ft2_4FGL_J1150.4+2418_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/105393/ltcube_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.fits outfile=/scratch/kocevski/105393/expmap_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.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/105393/ltcube_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.fits
.....................!
real 189.99
user 185.39
sys 4.24

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/105393/ft1_filtered_4FGL_J1150.4+2418_daily_bin1008.fits scfile=/scratch/kocevski/105393/ft2_4FGL_J1150.4+2418_daily_bin1008.fits outfile=/scratch/kocevski/105393/cmap_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105393/ft1_filtered_4FGL_J1150.4+2418_daily_bin1008.fits scfile=/scratch/kocevski/105393/ft2_4FGL_J1150.4+2418_daily_bin1008.fits outfile=/scratch/kocevski/105393/cmap_HighResolution_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .67531E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .23285       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6739       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.625       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20330E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11406E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .32651       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .25738E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.660       1.0000         .10000E-03   10000.    
    18 'norm      '    27.457       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.1695       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .71606       1.0000         .10000E-03   10000.    
    23 'norm      '    .10110E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2470       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92075       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=   5251.628     FROM MIGRAD    STATUS=CONVERGED    667 CALLS     2738 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78256E-01    1.8033       -.76588E-06    .38214E-03
   2  Prefactor     .10000E-03    2.1399        .32743E-07** at limit **
   3  norm          .13314        10.794       -.91428E-06   -.57454E-04
   4  Prefactor     2.6690        9.2836       -.25334E-05   -.17665E-03
   5  Prefactor     .10000E-03    7.7868       -.19368E-05** at limit **
   6  Prefactor     60.611        51.296       -.12297E-04    .21636E-04
   7  Prefactor     7.7885        9.1827       -.11671E-05    .79094E-04
   8  Prefactor     .10000E-03    5.1904       -.71792E-06** at limit **
   9  Prefactor     .10000E-03    8.0189        .41753E-05** at limit **
  10  Prefactor     3.7090        11.972       -.50512E-05   -.80255E-04
  11  Prefactor     .10000E-03    .78211       -.34586E-07** at limit **
  12  Prefactor     .10000E-03    8.2382       -.25525E-05** at limit **
  13  norm          2.9135        1.4748       -.11413E-06   -.96725E-04
  14  Prefactor     .10000E-03    4.1185       -.20417E-06** at limit **
  15  Prefactor     .34090        32.611        .23553E-05   -.36150E-03
  16  Prefactor     .10001E-03    2.3215       -.33204E-06** at limit **
  17  Prefactor     11.660        5.7349       -.10599E-06    .33057E-03
  18  norm          27.457        6.9234        .60332E-07   -.10289E-03
  19  Prefactor     .10000E-03    1.2155        .81462E-07** at limit **
  20  Prefactor     4.1672        4.0980       -.38942E-06   -.33321E-03
  21  Prefactor     .10000E-03    3.3759        .41739E-07** at limit **
  22  norm          .71593        .33329       -.42951E-07    .53127E-03
  23  norm          .10001E-03    6.3224       -.37373E-06** at limit **
  24  Prefactor     .10000E-03    10.662        .24119E-06** at limit **
  25  Normalizat    1.2476        .21920        .27856E-05    .27836E-03
  26  Prefactor     .92017        .21998        .71755E-06    .30673E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0782564
  Prefactor  = 0.0001
  norm       = 0.133144
  Prefactor  = 2.66902
  Prefactor  = 0.0001
  Prefactor  = 60.6114
  Prefactor  = 7.78846
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 3.709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91346
  Prefactor  = 0.0001
  Prefactor  = 0.3409
  Prefactor  = 0.000100015
  Prefactor  = 11.6601
  norm       = 27.4569
  Prefactor  = 0.0001
  Prefactor  = 4.16716
  Prefactor  = 0.0001
  norm       = 0.715925
  norm       = 0.00010001
  Prefactor  = 0.0001
  Normalizat = 1.24758
  Prefactor  = 0.920172
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.628     FROM HESSE     STATUS=OK           476 CALLS     3214 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78256E-01    21.910        .18528E-02   -1.5652    
   2  Prefactor     .10000E-03    2.1413        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .13314        18.830        .69851E-01   -1.5635    
   4  Prefactor     2.6690        9.3622        .24921E-03   -1.5381    
   5  Prefactor     .10000E-03    7.7914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.611        50.856        .51531E-04   -1.4149    
   7  Prefactor     7.7885        9.1679        .14362E-03   -1.5150    
   8  Prefactor     .10000E-03    36.445        .31660E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.7090        12.085        .20996E-03   -1.5323    
  11  Prefactor     .10000E-03    .79052        .62559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.2314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9135        1.4743        .59955E-04   -1.5367    
  14  Prefactor     .10000E-03    4.1832        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34090        38.766        .11913       -1.5591    
  16  Prefactor     .10001E-03    19.795        .19277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.660        5.3088        .10649E-03   -1.5025    
  18  norm          27.457        6.9076        .76455E-04   -1.4659    
  19  Prefactor     .10000E-03    1.2208        .77917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.1672        4.0580        .12844E-03   -1.5300    
  21  Prefactor     .10000E-03    3.3847        .12994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .71593        .33080        .27059E-04   -1.5539    
  23  norm          .10001E-03    59.211        .34303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2476        .26289        .25463E-03   -.85145    
  26  Prefactor     .92017        .26247        .30892E-03   -.95440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89254e-09
Minuit parameter uncertainties:
  1  2.61814
  2  1.53659e-06
  3  3.16661
  4  9.3673
  5  3.94173e-06
  6  50.8924
  7  9.16955
  8  0.000599069
  9  9.19068e-06
  10  12.0928
  11  2.19663e-06
  12  7.4561e-06
  13  1.47427
  14  9.88788e-06
  15  7.2743
  16  0.00108924
  17  5.30906
  18  6.90778
  19  1.67567e-06
  20  4.05831
  21  3.78175e-06
  22  0.330802
  23  0.00157385
  24  1.15154e-05
  25  0.263166
  26  0.262827
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.197e-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:  9.202e-01  2.628e-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.248e+00  2.632e-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: 6.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105393/likelihoodResults_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.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) = 5251.6340175
delta logL = -0.00579323016154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5251.62822449
delta logL = -2.10297002923e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2148       1.0000          .0000       10.000    
     3 'Normalizat'    1.2476       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92023       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=   5251.628     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      219 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3674        .90712E-02** at limit **
   2  Index         1.9244        7.7232        .50000        .35664E-06
   3  Normalizat    1.2476        .88082E-02    .57580E-01    .45571E-04
   4  Prefactor     .92017        .93854E-02    .69828E-01    .46493E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.92437
  Normalizat = 1.24758
  Prefactor  = 0.920169
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.628     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      252 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.396        .65602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9244        5.3187        .50000       -.66255    
   3  Normalizat    1.2476        .37070E-01    .25463E-03   -.85145    
   4  Prefactor     .92017        .39464E-01    .30892E-03   -.95440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.542e-10
Minuit parameter uncertainties:
  1  3.65083e-06
  2  280.226
  3  0.0370709
  4  0.0394656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105393': 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) = 5251.62821888
delta logL = 5.39914890396e-06

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.651e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.924e+00  2.802e+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:  9.202e-01  3.947e-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:  1.248e+00  3.707e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105393/cmap_HighResolution_500601601_500860801_4FGL_J1150.4+2418_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.45e-08', time_completed='2021-09-04 13:11:29.638978', job_id='105393', GAL2='0.92', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630786289.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='5.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1008' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 105393: <4FGL_J1150.4+2418_daily_bin1008> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1008 177.603 24.3016 500601601 500860801 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 :                                   682.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            917 sec.

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

