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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1038
RA = 177.603, Dec = 24.3016
tmin = 508377601, tmax = 508636801
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='105437', job_status='RUN', time_executed='2021-09-04 12:57:35.354016', time_epoch_executed='1630785455.35' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105437/ft1_4FGL_J1150.4+2418_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105437/ft2_4FGL_J1150.4+2418_daily_bin1038.fits


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

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

Done.
real 3.65
user 3.36
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105437/ft2_4FGL_J1150.4+2418_daily_bin1038.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/105437/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1038.fits evtable="EVENTS" outfile="/scratch/kocevski/105437/ft1_filtered_4FGL_J1150.4+2418_daily_bin1038.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105437/ft1_filtered_4FGL_J1150.4+2418_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/105437/ft2_4FGL_J1150.4+2418_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/105437/ltcube_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.fits outfile=/scratch/kocevski/105437/expmap_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.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/105437/ltcube_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.fits
.....................!
real 191.08
user 185.31
sys 5.41

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/105437/ft1_filtered_4FGL_J1150.4+2418_daily_bin1038.fits scfile=/scratch/kocevski/105437/ft2_4FGL_J1150.4+2418_daily_bin1038.fits outfile=/scratch/kocevski/105437/cmap_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105437/ft1_filtered_4FGL_J1150.4+2418_daily_bin1038.fits scfile=/scratch/kocevski/105437/ft2_4FGL_J1150.4+2418_daily_bin1038.fits outfile=/scratch/kocevski/105437/cmap_HighResolution_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10340E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3674       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.8054       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0300       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4908       1.0000         .10000E-03   10000.    
    18 'norm      '    14.674       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .56330E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    17.077       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .48798E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1528       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99724       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=   6218.624     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     2637 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99788        .19522E-07** at limit **
   2  Prefactor     .10000E-03    2.3284        .98039E-08** at limit **
   3  norm          .10000E-03    3.8140       -.13887E-06** at limit **
   4  Prefactor     .10000E-03    25.870        .17699E-06** at limit **
   5  Prefactor     .10000E-03    4.6893       -.12946E-06** at limit **
   6  Prefactor     1.3740        407.61        .33797E-04    .10020E-04
   7  Prefactor     .10000E-03    3.9956        .26589E-06** at limit **
   8  Prefactor     .10000E-03    7.6976        .15299E-05** at limit **
   9  Prefactor     .10000E-03    14.147        .43536E-05** at limit **
  10  Prefactor     .10000E-03    8.8655       -.25842E-05** at limit **
  11  Prefactor     .10000E-03    .96725        .50182E-07** at limit **
  12  Prefactor     .10000E-03    51.676       -.87409E-05** at limit **
  13  norm          3.8052        1.4930        .35107E-07   -.11154E-03
  14  Prefactor     .10000E-03    2.4801        .20209E-07** at limit **
  15  Prefactor     .10000E-03    16.184       -.46663E-05** at limit **
  16  Prefactor     4.0314        3.5022        .27398E-07   -.73907E-04
  17  Prefactor     3.4903        3.7645        .73314E-07   -.79499E-04
  18  norm          14.675        4.7202        .12230E-07   -.45471E-03
  19  Prefactor     4.1970        2.6709       -.19776E-07   -.31320E-03
  20  Prefactor     .10000E-03    1.0418       -.96965E-08** at limit **
  21  Prefactor     .10000E-03    9.6705        .59081E-06** at limit **
  22  norm          .56315E-01    .85328E-01    .61425E-07   -.55611E-02
  23  norm          17.077        6.4405        .16650E-07   -.27328E-03
  24  Prefactor     .10040E-03    6.7488        .20445E-05** at limit **
  25  Normalizat    1.1529        .18389       -.44530E-06   -.25055E-03
  26  Prefactor     .99718        .19390       -.69871E-06   -.20886E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.37403
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.80515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.0314
  Prefactor  = 3.49034
  norm       = 14.6748
  Prefactor  = 4.197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0563151
  norm       = 17.0772
  Prefactor  = 0.000100401
  Normalizat = 1.15293
  Prefactor  = 0.997177
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.624     FROM HESSE     STATUS=OK           452 CALLS     3089 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0048        .76916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.3316        .11751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.8255        .15039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.608        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6931        .16677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3740        413.31        .37304E-03   -1.5474    
   7  Prefactor     .10000E-03    4.0009        .15396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.9983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5430        .14976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    51.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.8052        1.4927        .57643E-04   -1.5318    
  14  Prefactor     .10000E-03    2.5113        .12112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0314        3.4724        .12169E-03   -1.5306    
  17  Prefactor     3.4903        3.7296        .14118E-03   -1.5334    
  18  norm          14.675        4.7115        .44749E-03   -1.4942    
  19  Prefactor     4.1970        2.6647        .95625E-04   -1.5298    
  20  Prefactor     .10000E-03    1.0530        .78477E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .56315E-01    .23972        .18602E-03   -1.5661    
  23  norm          17.077        6.4319        .96920E-04   -1.4881    
  24  Prefactor     .10040E-03    49.317        .37929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1529        .21509        .25082E-03   -.88070    
  26  Prefactor     .99718        .22613        .28457E-03   -.92824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06269e-08
Minuit parameter uncertainties:
  1  1.05359e-06
  2  3.9635e-07
  3  3.88007e-07
  4  1.09609e-05
  5  9.09056e-07
  6  47.9977
  7  6.08407e-06
  8  4.3473e-05
  9  0.000144653
  10  6.0744e-05
  11  4.7129e-06
  12  0.000423615
  13  1.49274
  14  3.07395e-06
  15  0.000151233
  16  3.4726
  17  3.72983
  18  4.71166
  19  2.66479
  20  1.36921e-06
  21  1.89136e-05
  22  0.232173
  23  6.43213
  24  0.00890199
  25  0.215254
  26  0.226341
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.713e-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.972e-01  2.263e-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.153e+00  2.153e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105437/likelihoodResults_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.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) = 6218.62739519
delta logL = -0.00309002129416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6218.62430424
delta logL = 9.27339897316e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2643       1.0000          .0000       10.000    
     3 'Normalizat'    1.1530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99715       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6218.556     FROM MIGRAD    STATUS=FAILED       183 CALLS      350 TOTAL
                     EDM=   .15E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62884E-01    21.054        .44636E-03    .15756E-01
   2  Index         3.8408        6.9408        .48923E-02    .63178E-04
   3  Normalizat    1.1273        .15331        .25336E-03    .74487E-05
   4  Prefactor     1.0117        .15883        .28279E-03    .41730E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6218.556     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      445 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62884E-01    21.054        .66513E-04    .15756E-01
   2  Index         3.8408        6.9408        .21198E-02    .63178E-04
   3  Normalizat    1.1273        .15331        .15129E-03    .74487E-05
   4  Prefactor     1.0117        .15883        .55874E-04    .41730E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6218.556     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      485 TOTAL
                     EDM=   .49E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .62883E-01    .90475        .89272E-04   -.11245E-03
   2  Index         3.8408        3.2123        .97846E-03   -.11851E-05
   3  Normalizat    1.1273        .22197        .10134E-04   -.11218E-05
   4  Prefactor     1.0117        .22915        .11311E-04    .22915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0628833
  Index      = 3.84079
  Normalizat = 1.12727
  Prefactor  = 1.01167
 **********
 **   18 **HESSE 
 **********

 FCN=   6218.556     FROM HESSE     STATUS=OK            25 CALLS      510 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .62883E-01    .52577        .35709E-05   -1.5658    
   2  Index         3.8408        2.5427        .39139E-04   -.23397    
   3  Normalizat    1.1273        .22191        .20269E-05   -.88881    
   4  Prefactor     1.0117        .22901        .22623E-05   -.92342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16955e-12
Minuit parameter uncertainties:
  1  0.363374
  2  2.67566
  3  0.22209
  4  0.229231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105437': 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) = 6218.55595543
delta logL = 0.0683497422688

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  6.288e-02  3.634e-01  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.841e+00  2.676e+00  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.012e+00  2.292e-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.127e+00  2.221e-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/105437/cmap_HighResolution_508377601_508636801_4FGL_J1150.4+2418_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.86e-08', time_completed='2021-09-04 13:09:54.530731', job_id='105437', GAL2='1.01', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1630786194.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='6.83e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1038' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:09:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 105437: <4FGL_J1150.4+2418_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1038 177.603 24.3016 508377601 508636801 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 :                                   736.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            819 sec.

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

