/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 7 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 = 7316
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin26
RA = 177.603, Dec = 24.3016
tmin = 246067201, tmax = 246326401
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='99275', job_status='RUN', time_executed='2021-09-04 12:37:01.733568', time_epoch_executed='1630784221.73' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='26'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99275

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99275/ft1_4FGL_J1150.4+2418_daily_bin26.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99275/ft2_4FGL_J1150.4+2418_daily_bin26.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99275/ft1_4FGL_J1150.4+2418_daily_bin26.fits outfile=/scratch/kocevski/99275/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin26.fits ra=177.603 dec=24.3016 rad=12.0 tmin=246067201.0 tmax=246326401.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 1.58
user 1.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99275/ft2_4FGL_J1150.4+2418_daily_bin26.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/99275/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin26.fits evtable="EVENTS" outfile="/scratch/kocevski/99275/ft1_filtered_4FGL_J1150.4+2418_daily_bin26.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.54
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99275/ft1_filtered_4FGL_J1150.4+2418_daily_bin26.fits evtable="EVENTS" scfile=/scratch/kocevski/99275/ft2_4FGL_J1150.4+2418_daily_bin26.fits sctable="SC_DATA" expcube=/scratch/kocevski/99275/ltcube_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.fits outfile=/scratch/kocevski/99275/expmap_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.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/99275/ltcube_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.fits
.....................!
real 191.40
user 185.58
sys 5.38

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/99275/ft1_filtered_4FGL_J1150.4+2418_daily_bin26.fits scfile=/scratch/kocevski/99275/ft2_4FGL_J1150.4+2418_daily_bin26.fits outfile=/scratch/kocevski/99275/cmap_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99275/ft1_filtered_4FGL_J1150.4+2418_daily_bin26.fits scfile=/scratch/kocevski/99275/ft2_4FGL_J1150.4+2418_daily_bin26.fits outfile=/scratch/kocevski/99275/cmap_HighResolution_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99841       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67855E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    94.851       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .54776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.7153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3358       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.6214       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12718E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.059       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .21795       1.0000         .10000E-03   10000.    
    23 'norm      '    3.7733       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2469       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .81842       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3835       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=   8024.399     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3169 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .99780        2.0471       -.60362E-06   -.15719E-02
   2  Prefactor     .10000E-03    2.6813       -.94473E-07** at limit **
   3  norm          .10000E-03    7.1755       -.43608E-06** at limit **
   4  Prefactor     .10000E-03    4.2671        .22755E-06** at limit **
   5  Prefactor     .10000E-03    11.100       -.64570E-06** at limit **
   6  Prefactor     94.838        48.976       -.90963E-05    .23400E-03
   7  Prefactor     .10000E-03    11.457       -.12743E-06** at limit **
   8  Prefactor     .10000E-03    2.1019        .37648E-07** at limit **
   9  Prefactor     .10000E-03    5.4060       -.40073E-06** at limit **
  10  Prefactor     .10000E-03    5.9293        .93666E-07** at limit **
  11  Prefactor     .54771        .77687        .15745E-07    .33705E-03
  12  Prefactor     .10000E-03    13.152       -.90953E-07** at limit **
  13  norm          2.7153        1.0775       -.34663E-07   -.52941E-04
  14  Prefactor     6.3347        4.1534        .27442E-06   -.41656E-03
  15  Prefactor     .10000E-03    39.501       -.80119E-07** at limit **
  16  Prefactor     .10000E-03    .82029       -.27202E-07** at limit **
  17  Prefactor     .10000E-03    1.1666       -.40254E-07** at limit **
  18  norm          7.6190        2.8506       -.11911E-06    .13246E-03
  19  Prefactor     .10000E-03    1.0208       -.41138E-07** at limit **
  20  Prefactor     11.058        2.8508        .61168E-07    .18807E-04
  21  Prefactor     .10000E-03    3.5113        .16385E-06** at limit **
  22  norm          .21792        .16716       -.40159E-07   -.17097E-02
  23  norm          3.7730        3.5419       -.93242E-06   -.14201E-03
  24  Prefactor     5.2454        8.0042       -.31732E-06   -.13058E-03
  25  Normalizat    .81858        .16474        .15874E-05    .98053E-04
  26  Prefactor     1.3834        .17721        .21849E-06    .15303E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.997795
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 94.8382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.547713
  Prefactor  = 0.0001
  norm       = 2.71535
  Prefactor  = 6.33471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.619
  Prefactor  = 0.0001
  Prefactor  = 11.0576
  Prefactor  = 0.0001
  norm       = 0.217922
  norm       = 3.77297
  Prefactor  = 5.24539
  Normalizat = 0.818583
  Prefactor  = 1.38344
 **********
 **   18 **HESSE 
 **********

 FCN=   8024.399     FROM HESSE     STATUS=OK           468 CALLS     3637 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .99780        1.8825        .18325E-02   -1.5508    
   2  Prefactor     .10000E-03    2.6987        .14324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.3257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.2821        .18068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.228        .85998E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     94.838        48.066        .41268E-04   -1.3757    
   7  Prefactor     .10000E-03    11.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.1291        .12677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .54771        .63660        .91330E-03   -1.5560    
  12  Prefactor     .10000E-03    13.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.7153        1.0765        .56452E-04   -1.5378    
  14  Prefactor     6.3347        4.1397        .13808E-03   -1.5205    
  15  Prefactor     .10000E-03    40.598        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .83897        .79152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.1969        .18883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.6190        2.7987        .87229E-04   -1.5156    
  19  Prefactor     .10000E-03    1.9458        .17214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.058        2.8432        .71941E-04   -1.5043    
  21  Prefactor     .10000E-03    3.5568        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .21792        .15908        .30746E-03   -1.5615    
  23  norm          3.7730        3.5519        .15782E-03   -1.5319    
  24  Prefactor     5.2454        8.0016        .17548E-03   -1.5250    
  25  Normalizat    .81858        .19704        .28551E-03   -.99383    
  26  Prefactor     1.3834        .21333        .25451E-03   -.80859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80832e-10
Minuit parameter uncertainties:
  1  1.88261
  2  3.16836e-07
  3  2.98505e-06
  4  1.75861e-06
  5  0.000132827
  6  48.0854
  7  1.31486e-05
  8  4.84398e-06
  9  4.40125e-07
  10  4.45932e-06
  11  0.636613
  12  1.93054e-05
  13  1.07647
  14  4.13993
  15  7.47922e-05
  16  2.84503e-06
  17  3.94449e-06
  18  2.79879
  19  3.5536e-06
  20  2.84328
  21  6.06276e-06
  22  0.159081
  23  3.55211
  24  8.00323
  25  0.197217
  26  0.213468
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  5.477e-01  6.366e-01  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.383e+00  2.135e-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:  8.186e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 9.47e-09 +/- 1.10e-08
Energy Flux (Fixed Index): 4.04e-06 +/- 4.70e-06

TS (Fixed Index): 2.10
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 4.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99275/likelihoodResults_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.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) = 8023.98423205
delta logL = 0.414459533639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8023.94520794
delta logL = 0.453483645284

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76472       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5397       1.0000          .0000       10.000    
     3 'Normalizat'    .82350       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3798       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=   8023.945     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76478        53.161        .12308E-01   -.10025E-02
   2  Index         1.5396        6.1862        .29371       -.38554E-04
   3  Normalizat    .82376        .16286        .64352E-01    .26868E-04
   4  Prefactor     1.3794        .17229        .57620E-01    .23001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.764776
  Index      = 1.53956
  Normalizat = 0.823759
  Prefactor  = 1.37939
 **********
 **   18 **HESSE 
 **********

 FCN=   8023.945     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76478        .84424        .82477E-04   -1.5533    
   2  Index         1.5396        .62804        .12180E-01   -.76438    
   3  Normalizat    .82376        .18756        .28467E-03   -.99193    
   4  Prefactor     1.3794        .21211        .25479E-03   -.80976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43718e-11
Minuit parameter uncertainties:
  1  0.84425
  2  0.631251
  3  0.187706
  4  0.212243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99275': 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) = 8023.94520544
delta logL = 0.453486140648

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  1.379e+00  2.122e-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:  8.238e-01  1.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.01
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.54 +/- 0.63
Photon Flux (Free Index): 5.61e-09 +/- 7.08e-09
Energy Flux (Free Index): 1.55e-05 +/- 2.85e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/99275/cmap_HighResolution_246067201_246326401_4FGL_J1150.4+2418_daily_bin26.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.66e-03', comment='SUCCESS', photon_flux='9.47e-09', energy_flux2='1.55e-05', photon_flux_error='1.10e-08', dlogl='4.53e-01', energy_flux='4.04e-06', photon_flux2='5.61e-09', job_status='DONE', time_completed='2021-09-04 12:52:13.771630', photon_index_error2='0.63', photon_index2='1.54', ts='2.10', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='4.80e-08', energy_flux_error2='2.85e-05', EG='0.82', time_epoch_completed='1630785133.77', return_code='0', job_id='99275', GAL2='1.38', EG2='0.82', return_code2='0', energy_flux_error='4.70e-06', photon_flux_error2='7.08e-09', ts2='3.01', photon_index='2.23' WHERE bin_id='26' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:52:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 99275: <4FGL_J1150.4+2418_daily_bin26> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin26> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:45 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:46 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:36:46 2021
Terminated at Sat Sep  4 12:52:14 2021
Results reported at Sat Sep  4 12:52:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin26 177.603 24.3016 246067201 246326401 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 :                                   905.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            929 sec.

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

