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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1405
RA = 177.603, Dec = 24.3016
tmin = 603504001, tmax = 603763201
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='107130', job_status='RUN', time_executed='2021-09-04 13:01:48.017322', time_epoch_executed='1630785708.02' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107130/ft1_4FGL_J1150.4+2418_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107130/ft1_4FGL_J1150.4+2418_daily_bin1405.fits outfile=/scratch/kocevski/107130/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1405.fits ra=177.603 dec=24.3016 rad=12.0 tmin=603504001.0 tmax=603763201.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 2.78
user 2.58
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/107130/ltcube_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.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/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits
.....................!
real 12.53
user 12.14
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/107130/ltcube_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.fits outfile=/scratch/kocevski/107130/expmap_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.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/107130/ltcube_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.fits
.....................!
real 192.65
user 186.35
sys 5.69

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/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits scfile=/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits outfile=/scratch/kocevski/107130/cmap_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.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.58
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits scfile=/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits outfile=/scratch/kocevski/107130/cmap_HighResolution_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.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/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/107130/ft2_4FGL_J1150.4+2418_daily_bin1405.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107130/Model_4FGL_J1150.4+2418_daily_bin1405.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/107130/ft1_filtered_4FGL_J1150.4+2418_daily_bin1405.fits.....................!
real 22.78
user 21.36
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.566       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    129.47       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42663E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.576       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4441       1.0000         .10000E-03   10000.    
    18 'norm      '    9.4570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.7752       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .26619E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    18.715       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6507       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .10801       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1231.234     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2636 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.128        .78693E-06** at limit **
   2  Prefactor     .10018E-03    11.887        .25297E-04** at limit **
   3  norm          .10001E-03    21.245       -.39744E-04** at limit **
   4  Prefactor     .10008E-03    23.521       -.39238E-04** at limit **
   5  Prefactor     .10052E-03    31.638        .36430E-04** at limit **
   6  Prefactor     .12443E-03    174.13       -.82935E-04** at limit **
   7  Prefactor     .10001E-03    17.452        .34787E-04** at limit **
   8  Prefactor     10.566        1.0493       -.59637E-06    .15761E-03
   9  Prefactor     .10031E-03    33.484        .39936E-04** at limit **
  10  Prefactor     .10073E-03    23.468       -.41439E-04** at limit **
  11  Prefactor     .10000E-03    2.6971        .97763E-06** at limit **
  12  Prefactor     129.46        2.7040       -.14606E-05    .51218E-02
  13  norm          1.8715        2.6123       -.10378E-05   -.13434E-03
  14  Prefactor     .28761E-01    58.742       -.93950E-04    .24793E-02
  15  Prefactor     35.563        3.2004       -.33028E-05    .30814E-02
  16  Prefactor     .10000E-03    4.1106        .44537E-06** at limit **
  17  Prefactor     3.4449        4.5310       -.69170E-05   -.33263E-03
  18  norm          9.4576        2.9556        .32917E-05    .45273E-02
  19  Prefactor     7.7757        4.1068       -.12767E-06   -.25001E-02
  20  Prefactor     .10000E-03    3.8146        .82846E-06** at limit **
  21  Prefactor     .10000E-03    7.7639       -.47113E-06** at limit **
  22  norm          .25225E-01    2.7873       -.25269E-05    .49887E-04
  23  norm          18.720        1.0823       -.59489E-06    .29378E-03
  24  Prefactor     .10000E-03    6.2476        .40657E-06** at limit **
  25  Normalizat    1.6519        .48382        .14421E-04    .23211E-03
  26  Prefactor     .10695        .40492       -.22747E-04    .48828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100184
  norm       = 0.000100015
  Prefactor  = 0.000100081
  Prefactor  = 0.000100523
  Prefactor  = 0.000124432
  Prefactor  = 0.000100007
  Prefactor  = 10.5664
  Prefactor  = 0.00010031
  Prefactor  = 0.000100728
  Prefactor  = 0.0001
  Prefactor  = 129.456
  norm       = 1.87155
  Prefactor  = 0.0287611
  Prefactor  = 35.5631
  Prefactor  = 0.0001
  Prefactor  = 3.44487
  norm       = 9.45759
  Prefactor  = 7.77574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.025225
  norm       = 18.7195
  Prefactor  = 0.0001
  Normalizat = 1.65193
  Prefactor  = 0.106947
 **********
 **   18 **HESSE 
 **********

 FCN=   1231.234     FROM HESSE     STATUS=OK           516 CALLS     3152 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.124        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10018E-03    27.274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    46.342        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10008E-03    24.749        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10052E-03    66.177        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .12443E-03    185.97        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    29.068        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.566        19.599        .30815E-02   -1.5058    
   9  Prefactor     .10031E-03    67.345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10073E-03    41.460        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6911        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     129.46        111.75        .88462E-03   -1.3427    
  13  norm          1.8715        2.6814        .76123E-02   -1.5434    
  14  Prefactor     .28761E-01    14.031        .76534E-01   -1.5674    
  15  Prefactor     35.563        79.991        .16797E-02   -1.4515    
  16  Prefactor     .10000E-03    4.0996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4449        4.6024        .54484E-02   -1.5337    
  18  norm          9.4576        6.2488        .32579E-02   -1.5093    
  19  Prefactor     7.7757        5.5843        .35952E-02   -1.5150    
  20  Prefactor     .10000E-03    3.7339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .25225E-01    1.0060        .11150E-01   -1.5676    
  23  norm          18.720        12.249        .23146E-02   -1.4842    
  24  Prefactor     .10000E-03    6.2452        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6519        .94550        .48326E-01   -.73594    
  26  Prefactor     .10695        1.5977        .15761       -1.3636    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22478e-07
Minuit parameter uncertainties:
  1  0.000184532
  2  0.00448663
  3  0.00166635
  4  0.0028397
  5  0.0117817
  6  0.135236
  7  0.000891443
  8  19.6105
  9  0.0091442
  10  0.0109944
  11  4.07296e-06
  12  111.934
  13  2.68155
  14  1.2686
  15  80.2336
  16  1.04493e-05
  17  4.60289
  18  6.24924
  19  5.58464
  20  1.82183e-06
  21  3.53113e-06
  22  0.317965
  23  12.251
  24  3.87509e-05
  25  0.956096
  26  0.85569
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.073e-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:  1.069e-01  8.557e-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.652e+00  9.561e-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: 2.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107130/likelihoodResults_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.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) = 1231.23568627
delta logL = -0.00126215446971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1231.23442402
delta logL = 9.82386154647e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2181       1.0000          .0000       10.000    
     3 'Normalizat'    1.6520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10691       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6130E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1231.234     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      255 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.223        .56572E-02** at limit **
   2  Index         1.8400        7.6230        .50000        .29760E-06
   3  Normalizat    1.6519        .34001E-01    .21360E-03   -.23204E-02
   4  Prefactor     .10693        .30841E-01    .68094E-03   -.70676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.83996
  Normalizat = 1.6519
  Prefactor  = 0.106933
 **********
 **   18 **HESSE 
 **********

 FCN=   1231.234     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    288.12        .59667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8400        8.2168        .50000       -.68414    
   3  Normalizat    1.6519        .11472        .42719E-04   -.73595    
   4  Prefactor     .10693        .10390        .13619E-03   -1.3636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04086e-08
Minuit parameter uncertainties:
  1  0.000797583
  2  1083.52
  3  0.114742
  4  0.104078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107130': 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) = 1231.23442208
delta logL = 2.04029811357e-06

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  7.976e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.840e+00  1.084e+03  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.069e-01  1.041e-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.652e+00  1.147e-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/107130/cmap_HighResolution_603504001_603763201_4FGL_J1150.4+2418_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.29e-07', time_completed='2021-09-04 13:08:37.826980', job_id='107130', GAL2='0.11', fit_tolerance='1e-08', EG2='1.65', EG='1.65', time_epoch_completed='1630786117.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.11', dlogl='2.04e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1405' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:08:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 107130: <4FGL_J1150.4+2418_daily_bin1405> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1405> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:01:30 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:01:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:01:32 2021
Terminated at Sat Sep  4 13:08:38 2021
Results reported at Sat Sep  4 13:08:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1405 177.603 24.3016 603504001 603763201 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 :                                   401.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             387.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   426 sec.
    Turnaround time :                            428 sec.

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

