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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin726
RA = 177.603, Dec = 24.3016
tmin = 427507201, tmax = 427766401
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='103771', job_status='RUN', time_executed='2021-09-04 12:51:33.975858', time_epoch_executed='1630785093.98' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='726'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103771/ft1_4FGL_J1150.4+2418_daily_bin726.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103771/ft1_4FGL_J1150.4+2418_daily_bin726.fits outfile=/scratch/kocevski/103771/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin726.fits ra=177.603 dec=24.3016 rad=12.0 tmin=427507201.0 tmax=427766401.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.44
user 5.19
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits" evtable="EVENTS" scfile=/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits sctable="SC_DATA" outfile=/scratch/kocevski/103771/ltcube_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.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/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits
.....................!
real 13.00
user 12.54
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits sctable="SC_DATA" expcube=/scratch/kocevski/103771/ltcube_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.fits outfile=/scratch/kocevski/103771/expmap_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.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/103771/ltcube_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.fits
.....................!
real 189.69
user 185.15
sys 4.13

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/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits scfile=/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits outfile=/scratch/kocevski/103771/cmap_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits scfile=/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits outfile=/scratch/kocevski/103771/cmap_HighResolution_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.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/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits evtable="EVENTS" scfile=/scratch/kocevski/103771/ft2_4FGL_J1150.4+2418_daily_bin726.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103771/Model_4FGL_J1150.4+2418_daily_bin726.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/103771/ft1_filtered_4FGL_J1150.4+2418_daily_bin726.fits.....................!
real 47.30
user 45.89
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50697       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    21.662       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14069E-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 '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6119       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3114       1.0000         .10000E-03   10000.    
    15 'Prefactor '    37.378       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12545E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76438E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.9745       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8498       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8575       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6279       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9960       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91682       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1077       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=   4833.673     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3109 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50498        2.4872       -.64661E-06   -.11027E-03
   2  Prefactor     .10000E-03    2.9050       -.72139E-07** at limit **
   3  norm          21.664        16.533        .87542E-07    .33188E-04
   4  Prefactor     .10000E-03    4.5336       -.17552E-05** at limit **
   5  Prefactor     .10000E-03    9.5515        .34911E-05** at limit **
   6  Prefactor     .10000E-03    20.221        .92170E-05** at limit **
   7  Prefactor     .10000E-03    9.2194        .35361E-05** at limit **
   8  Prefactor     .10000E-03    10.715       -.10632E-05** at limit **
   9  Prefactor     .10000E-03    7.0122       -.40802E-05** at limit **
  10  Prefactor     .10000E-03    3.7378        .17883E-06** at limit **
  11  Prefactor     .10000E-03    .46057       -.24047E-08** at limit **
  12  Prefactor     .10000E-03    33.167       -.48826E-05** at limit **
  13  norm          5.6118        1.9079        .60783E-07    .98857E-04
  14  Prefactor     2.3077        4.7129       -.96696E-06   -.85266E-03
  15  Prefactor     37.372        33.373       -.66113E-05    .16588E-04
  16  Prefactor     .10000E-03    3.1509        .15551E-05** at limit **
  17  Prefactor     .10006E-03    2.6096       -.19071E-06** at limit **
  18  norm          4.9754        3.0323        .99299E-07    .16379E-03
  19  Prefactor     .10000E-03    1.6592       -.86235E-07** at limit **
  20  Prefactor     5.8507        2.9424        .17774E-07    .25837E-03
  21  Prefactor     1.8571        5.9163       -.11385E-05   -.59630E-03
  22  norm          1.6278        .43649       -.10575E-07   -.94162E-03
  23  norm          4.9965        5.5808        .58732E-07   -.10104E-03
  24  Prefactor     .10000E-03    13.880       -.83806E-05** at limit **
  25  Normalizat    .91686        .21719        .71251E-06   -.47789E-04
  26  Prefactor     1.1077        .21989        .45396E-06   -.30766E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.504979
  Prefactor  = 0.0001
  norm       = 21.6637
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.61175
  Prefactor  = 2.30768
  Prefactor  = 37.3721
  Prefactor  = 0.000100003
  Prefactor  = 0.000100059
  norm       = 4.97538
  Prefactor  = 0.0001
  Prefactor  = 5.85072
  Prefactor  = 1.85707
  norm       = 1.62778
  norm       = 4.99652
  Prefactor  = 0.0001
  Normalizat = 0.916865
  Prefactor  = 1.10771
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.673     FROM HESSE     STATUS=OK           462 CALLS     3571 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .50498        7.8833        .20380E-02   -1.5566    
   2  Prefactor     .10000E-03    2.9092        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          21.664        16.519        .86060E-04   -1.4777    
   4  Prefactor     .10000E-03    4.5357        .14453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    20.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.140        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0058        .17950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.7410        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .46305        .46072E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.6118        1.9084        .53049E-04   -1.5234    
  14  Prefactor     2.3077        4.7071        .20302E-03   -1.5404    
  15  Prefactor     37.372        33.275        .65555E-04   -1.4485    
  16  Prefactor     .10000E-03    5.1215        .22276E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    37.395        .20343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.9754        3.0194        .90839E-04   -1.5262    
  19  Prefactor     .10000E-03    1.6881        .17409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.8507        2.9419        .80681E-04   -1.5224    
  21  Prefactor     1.8571        5.9528        .28406E-03   -1.5435    
  22  norm          1.6278        .43531        .22425E-04   -1.5453    
  23  norm          4.9965        5.5423        .16051E-03   -1.5261    
  24  Prefactor     .10000E-03    13.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91686        .25234        .27192E-03   -.95870    
  26  Prefactor     1.1077        .25799        .27038E-03   -.89220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3281e-08
Minuit parameter uncertainties:
  1  3.99067
  2  1.54931e-06
  3  16.5222
  4  2.28057e-06
  5  7.08585e-06
  6  8.96227e-06
  7  9.91337e-06
  8  7.15607e-06
  9  5.56574e-07
  10  7.14511e-07
  11  9.03575e-08
  12  9.9912e-05
  13  1.9084
  14  4.70788
  15  33.2919
  16  0.000259384
  17  0.00297427
  18  3.01954
  19  1.87355e-07
  20  2.94197
  21  5.9547
  22  0.435308
  23  5.54291
  24  2.11555e-05
  25  0.252666
  26  0.258281
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.169e-01  2.527e-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: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103771/likelihoodResults_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.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) = 4833.67277796
delta logL = -1.19699234347e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4833.67277609
delta logL = 6.7245127866e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1795       1.0000          .0000       10.000    
     3 'Normalizat'    .91683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1078       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=   4833.673     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      217 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.6883        .90712E-02** at limit **
   2  Index         1.6819        6.5266        .50000        .12808E-06
   3  Normalizat    .91687        .10671E-01    .45116E-01    .95476E-05
   4  Prefactor     1.1077        .11603E-01    .61136E-01    .40332E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.68193
  Normalizat = 0.916866
  Prefactor  = 1.10771
 **********
 **   18 **HESSE 
 **********

 FCN=   4833.673     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 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    41.767        .53820E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6819        5.2898        .50000       -.72564    
   3  Normalizat    .91687        .45278E-01    .27192E-03   -.95870    
   4  Prefactor     1.1077        .49217E-01    .27038E-03   -.89220    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47828e-10
Minuit parameter uncertainties:
  1  2.10062e-05
  2  312.388
  3  0.0452801
  4  0.0492189
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103771': 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) = 4833.67274808
delta logL = 2.8681333788e-05

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  9.169e-01  4.528e-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/103771/cmap_HighResolution_427507201_427766401_4FGL_J1150.4+2418_daily_bin726.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.37e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-04 13:02:52.387588', job_id='103771', GAL2='1.11', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630785772.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='2.87e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='726' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:02:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 103771: <4FGL_J1150.4+2418_daily_bin726> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin726> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:51:13 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:51: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:51:15 2021
Terminated at Sat Sep  4 13:02:53 2021
Results reported at Sat Sep  4 13:02:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin726 177.603 24.3016 427507201 427766401 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 :                                   675.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            700 sec.

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

