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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin7
RA = 177.603, Dec = 24.3016
tmin = 241142401, tmax = 241401601
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='99244', job_status='RUN', time_executed='2021-09-04 12:39:19.387300', time_epoch_executed='1630784359.39' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99244/ft1_4FGL_J1150.4+2418_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99244/ft1_4FGL_J1150.4+2418_daily_bin7.fits outfile=/scratch/kocevski/99244/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin7.fits ra=177.603 dec=24.3016 rad=12.0 tmin=241142401.0 tmax=241401601.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.50
user 1.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99244/ft1_filtered_4FGL_J1150.4+2418_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/99244/ltcube_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.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/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits
.....................!
real 12.46
user 12.13
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99244/ft1_filtered_4FGL_J1150.4+2418_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/99244/ltcube_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.fits outfile=/scratch/kocevski/99244/expmap_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.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/99244/ltcube_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.fits
.....................!
real 190.51
user 185.90
sys 4.23

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/99244/ft1_filtered_4FGL_J1150.4+2418_daily_bin7.fits scfile=/scratch/kocevski/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits outfile=/scratch/kocevski/99244/cmap_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99244/ft1_filtered_4FGL_J1150.4+2418_daily_bin7.fits scfile=/scratch/kocevski/99244/ft2_4FGL_J1150.4+2418_daily_bin7.fits outfile=/scratch/kocevski/99244/cmap_HighResolution_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9539       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4745       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8003       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3546       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3285       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.978       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.993       1.0000         .10000E-03   10000.    
    13 'norm      '    1.0915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4703       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2030       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.729       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7420       1.0000         .10000E-03   10000.    
    22 'norm      '    .44784E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    5.8565       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.291       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4388       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .52750       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6950.035     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3077 TOTAL
                     EDM=   .52E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9544        3.0963         .0000        .44885E-02
   2  Prefactor     6.4752        5.9067         .0000       -.12166E-02
   3  norm          5.8022        10.578         .0000        .14981E-03
   4  Prefactor     .10009E-03    4.2595         .0000    ** at limit **
   5  Prefactor     8.3551        9.4333         .0000       -.98362E-05
   6  Prefactor     .10001E-03    22.072         .0000    ** at limit **
   7  Prefactor     .10003E-03    12.290         .0000    ** at limit **
   8  Prefactor     1.3291        4.2856         .0000        .27071E-01
   9  Prefactor     12.977        15.082         .0000        .35824E-03
  10  Prefactor     .10000E-03    3.5455         .0000    ** at limit **
  11  Prefactor     .10000E-03    .69504         .0000    ** at limit **
  12  Prefactor     17.993        26.648         .0000       -.62762E-03
  13  norm          1.0920        .96846         .0000        .12929E-02
  14  Prefactor     .10000E-03    1.2017         .0000    ** at limit **
  15  Prefactor     .10004E-03    13.273         .0000    ** at limit **
  16  Prefactor     .10000E-03    .71157         .0000    ** at limit **
  17  Prefactor     1.4706        1.6333         .0000       -.81183E-03
  18  norm          2.2028        1.8251         .0000        .83496E-04
  19  Prefactor     .10000E-03    1.4521         .0000    ** at limit **
  20  Prefactor     10.729        2.8391         .0000        .38107E-02
  21  Prefactor     2.7417        4.8624         .0000       -.65875E-03
  22  norm          .44791E-01    .12678         .0000        .45037E-02
  23  norm          5.8569        3.6013         .0000        .18468E-02
  24  Prefactor     11.292        9.0075         .0000        .22784E-03
  25  Normalizat    1.4386        .16761         .0000       -.21384E-03
  26  Prefactor     .52767        .16554         .0000        .73096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95442
  Prefactor  = 6.47523
  norm       = 5.80219
  Prefactor  = 0.000100085
  Prefactor  = 8.35508
  Prefactor  = 0.00010001
  Prefactor  = 0.000100026
  Prefactor  = 1.32912
  Prefactor  = 12.9771
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.9932
  norm       = 1.09197
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 1.47057
  norm       = 2.20278
  Prefactor  = 0.0001
  Prefactor  = 10.729
  Prefactor  = 2.74167
  norm       = 0.0447912
  norm       = 5.85694
  Prefactor  = 11.2917
  Normalizat = 1.43856
  Prefactor  = 0.527671
 **********
 **   18 **HESSE 
 **********

 FCN=   6950.035     FROM HESSE     STATUS=OK           454 CALLS     3531 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9544        3.0990        .11165E-03   -1.5263    
   2  Prefactor     6.4752        5.8713        .15773E-03   -1.5199    
   3  norm          5.8022        10.588        .16676E-03   -1.5226    
   4  Prefactor     .10009E-03    17.222        .33044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3551        9.4275        .13870E-03   -1.5130    
   6  Prefactor     .10001E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    12.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.3291        4.2597        .14748E-02   -1.5477    
   9  Prefactor     12.977        15.102        .11119E-03   -1.4987    
  10  Prefactor     .10000E-03    3.5598        .15328E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .70546        .67772E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.993        26.724        .94422E-04   -1.4859    
  13  norm          1.0920        .93929        .73477E-04   -1.5499    
  14  Prefactor     .10000E-03    1.2112        .89204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10004E-03    13.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .72238        .68615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4706        1.6102        .10843E-03   -1.5465    
  18  norm          2.2028        1.8065        .98187E-04   -1.5411    
  19  Prefactor     .10000E-03    1.4973        .19450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.729        2.8372        .68142E-04   -1.5053    
  21  Prefactor     2.7417        4.8217        .22588E-03   -1.5377    
  22  norm          .44791E-01    .14045        .46912E-03   -1.5666    
  23  norm          5.8569        3.5923        .11560E-03   -1.5224    
  24  Prefactor     11.292        9.0056        .11922E-03   -1.5036    
  25  Normalizat    1.4386        .19255        .21116E-03   -.79520    
  26  Prefactor     .52767        .18763        .34363E-03   -1.1072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.9836e-08
Minuit parameter uncertainties:
  1  3.09913
  2  5.87183
  3  10.5913
  4  0.00242372
  5  9.42915
  6  0.000953068
  7  0.00114373
  8  4.26071
  9  15.1067
  10  0.000107143
  11  1.62894e-05
  12  26.742
  13  0.939303
  14  2.85895e-05
  15  0.00148775
  16  1.0145e-05
  17  1.6103
  18  1.80658
  19  4.58682e-06
  20  2.83727
  21  4.82243
  22  0.140449
  23  3.5924
  24  9.00666
  25  0.192647
  26  0.187847
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  1.629e-05  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:  5.277e-01  1.878e-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.439e+00  1.926e-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: 5.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99244/likelihoodResults_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.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) = 6950.04130899
delta logL = -0.0066071416677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6950.03470223
delta logL = -3.7872359826e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2372       1.0000          .0000       10.000    
     3 'Normalizat'    1.4386       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52771       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=   6950.035     FROM MIGRAD    STATUS=FAILED        90 CALLS      244 TOTAL
                     EDM=   .86E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    108.38        .67974E-03** at limit **
   2  Index         2.2471        5.4258        .50000       -.11775E-03
   3  Normalizat    1.4386        .65043E-01    .21116E-03    .21535E-04
   4  Prefactor     .52767        .67406E-01    .34363E-03    .15682E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6950.035     FROM SIMPLEX   STATUS=UNCHANGED    181 CALLS      425 TOTAL
                     EDM=   .88E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    108.38        .13054E-03** at limit **
   2  Index         2.2471        5.4258        .11111E-04   -.11775E-03
   3  Normalizat    1.4386        .65043E-01    .25381E-06    .21535E-04
   4  Prefactor     .52767        .67406E-01    .15872E-06    .15682E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6949.148     FROM MIGRAD    STATUS=CONVERGED    177 CALLS      602 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13996E-03    .37532E-03    .32172E-03** at limit **
   2  Index         7.1385        .82943        .14722        .14665E-03
   3  Normalizat    1.3595        .24277        .84465E-05    .15344E-04
   4  Prefactor     .58128        .21791        .13745E-03    .10173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000139964
  Index      = 7.13848
  Normalizat = 1.35946
  Prefactor  = 0.581279
 **********
 **   18 **HESSE 
 **********

 FCN=   6949.148     FROM HESSE     STATUS=OK            31 CALLS      633 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13996E-03    .17703E-02    .11657E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.1385        1.6344        .51265E-02    .44194    
   3  Normalizat    1.3595        .18959        .16893E-05   -.81808    
   4  Prefactor     .58128        .19184        .54981E-05   -1.0838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48896e-08
Minuit parameter uncertainties:
  1  0.000531968
  2  1.67228
  3  0.189683
  4  0.19206
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99244': 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) = 6949.14817121
delta logL = 0.886530642511

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.400e-04  5.320e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  7.138e+00  1.672e+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:  5.813e-01  1.921e-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.359e+00  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 177.603 24.302
Photon Index (Free Index): 7.14 +/- 1.67
Photon Flux (Free Index): 6.61e-08 +/- 4.88e-07
Energy Flux (Free Index): 7.86e-06 +/- 5.79e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/99244/cmap_HighResolution_241142401_241401601_4FGL_J1150.4+2418_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', comment='SUCCESS', energy_flux2='7.86e-06', dlogl='8.87e-01', photon_flux2='6.61e-08', job_status='DONE', time_completed='2021-09-04 12:53:12.037401', photon_index_error2='1.67', photon_index2='7.14', ts='-0.00', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', photon_flux_upper_limit='5.36e-08', energy_flux_error2='5.79e-05', EG='1.44', time_epoch_completed='1630785192.04', return_code='0', job_id='99244', GAL2='0.58', EG2='1.36', return_code2='0', photon_flux_error2='4.88e-07', ts2='1.89', photon_index='2.23' WHERE bin_id='7' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:53:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 99244: <4FGL_J1150.4+2418_daily_bin7> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin7 177.603 24.3016 241142401 241401601 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 :                                   832.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

