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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin492
RA = 177.603, Dec = 24.3016
tmin = 366854401, tmax = 367113601
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='102289', job_status='RUN', time_executed='2021-09-04 12:46:30.992602', time_epoch_executed='1630784790.99' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/102289

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/102289/ft1_4FGL_J1150.4+2418_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/102289/ft2_4FGL_J1150.4+2418_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/102289/ft1_4FGL_J1150.4+2418_daily_bin492.fits outfile=/scratch/kocevski/102289/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin492.fits ra=177.603 dec=24.3016 rad=12.0 tmin=366854401.0 tmax=367113601.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.34
user 5.05
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/102289/ft1_filtered_4FGL_J1150.4+2418_daily_bin492.fits" evtable="EVENTS" scfile=/scratch/kocevski/102289/ft2_4FGL_J1150.4+2418_daily_bin492.fits sctable="SC_DATA" outfile=/scratch/kocevski/102289/ltcube_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.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/102289/ft2_4FGL_J1150.4+2418_daily_bin492.fits
.....................!
real 11.79
user 11.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/102289/ft1_filtered_4FGL_J1150.4+2418_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/102289/ft2_4FGL_J1150.4+2418_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/102289/ltcube_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.fits outfile=/scratch/kocevski/102289/expmap_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.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/102289/ltcube_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.fits
.....................!
real 190.34
user 184.95
sys 4.77

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/102289/ft1_filtered_4FGL_J1150.4+2418_daily_bin492.fits scfile=/scratch/kocevski/102289/ft2_4FGL_J1150.4+2418_daily_bin492.fits outfile=/scratch/kocevski/102289/cmap_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.603 yref=24.3016 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.949       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .52088E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3398       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.3655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .90102       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3032       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.4232       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.578       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1676       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .81632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.4435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.8368       1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.151       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0609       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84486       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=   5990.942     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3149 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.951        5.1398       -.30700E-07   -.74812E-06
   2  Prefactor     .10000E-03    4.8685       -.30012E-06** at limit **
   3  norm          4.3421        15.745       -.13625E-05    .70112E-05
   4  Prefactor     1.3630        11.464        .18575E-05   -.19211E-04
   5  Prefactor     .10000E-03    27.553       -.66287E-06** at limit **
   6  Prefactor     .10000E-03    21.588        .83764E-06** at limit **
   7  Prefactor     .88709        11.484        .65572E-06   -.13303E-03
   8  Prefactor     5.8514        6.3857        .20242E-06   -.76746E-04
   9  Prefactor     .10000E-03    17.493       -.18182E-06** at limit **
  10  Prefactor     19.154        12.776       -.19332E-06    .29012E-05
  11  Prefactor     .10000E-03    1.0936        .69865E-08** at limit **
  12  Prefactor     3.3302        96.532       -.48655E-05    .11250E-04
  13  norm          .10000E-03    .70244       -.25738E-06** at limit **
  14  Prefactor     1.4265        4.9681        .10251E-05   -.11720E-04
  15  Prefactor     55.584        43.295        .15999E-05    .80711E-05
  16  Prefactor     4.9104        3.1156       -.33656E-07    .67725E-04
  17  Prefactor     .10000E-03    2.2259       -.14596E-06** at limit **
  18  norm          5.1681        4.9139        .42456E-06    .23959E-03
  19  Prefactor     .81636        4.0047       -.10187E-05   -.10742E-03
  20  Prefactor     9.4449        3.9703        .27179E-07    .39246E-03
  21  Prefactor     .10000E-03    4.8389       -.16745E-06** at limit **
  22  norm          1.8369        .37577       -.57523E-08    .18999E-03
  23  norm          .10000E-03    1.9809       -.58782E-07** at limit **
  24  Prefactor     10.153        11.978        .15815E-06    .55910E-04
  25  Normalizat    1.0604        .24530        .34112E-05    .14109E-03
  26  Prefactor     .84524        .22810       -.39398E-05    .97337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9512
  Prefactor  = 0.000100001
  norm       = 4.34209
  Prefactor  = 1.36299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.887087
  Prefactor  = 5.85142
  Prefactor  = 0.0001
  Prefactor  = 19.1536
  Prefactor  = 0.0001
  Prefactor  = 3.3302
  norm       = 0.0001
  Prefactor  = 1.42645
  Prefactor  = 55.5842
  Prefactor  = 4.91043
  Prefactor  = 0.0001
  norm       = 5.16806
  Prefactor  = 0.816357
  Prefactor  = 9.44495
  Prefactor  = 0.0001
  norm       = 1.83692
  norm       = 0.0001
  Prefactor  = 10.1527
  Normalizat = 1.06043
  Prefactor  = 0.845243
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.942     FROM HESSE     STATUS=OK           470 CALLS     3619 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.951        5.1379        .10443E-03   -1.4988    
   2  Prefactor     .10000E-03    13.846        .32387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3421        15.716        .19336E-03   -1.5291    
   4  Prefactor     1.3630        11.388        .18671E-02   -1.5474    
   5  Prefactor     .10000E-03    27.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .88709        38.938        .47346E-02   -1.5520    
   8  Prefactor     5.8514        6.3463        .16604E-03   -1.5224    
   9  Prefactor     .10000E-03    17.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.154        12.763        .91521E-04   -1.4832    
  11  Prefactor     .10000E-03    1.1230        .15776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3302        95.045        .22275E-03   -1.5343    
  13  norm          .10000E-03    1.7015        .12034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.4265        4.9986        .14565E-02   -1.5469    
  15  Prefactor     55.584        42.813        .53807E-04   -1.4215    
  16  Prefactor     4.9104        3.1041        .10199E-03   -1.5265    
  17  Prefactor     .10000E-03    2.2806        .22475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1681        4.7341        .11461E-03   -1.5253    
  19  Prefactor     .81636        3.6734        .21399E-03   -1.5527    
  20  Prefactor     9.4449        3.9545        .88402E-04   -1.5093    
  21  Prefactor     .10000E-03    4.9858        .33223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.8369        .37611        .20418E-04   -1.5437    
  23  norm          .10000E-03    1.9962        .10635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.153        11.958        .12577E-03   -1.5071    
  25  Normalizat    1.0604        .25096        .26025E-03   -.91033    
  26  Prefactor     .84524        .22864        .29820E-03   -.98082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30296e-09
Minuit parameter uncertainties:
  1  5.13807
  2  0.0001676
  3  15.7306
  4  7.88109
  5  2.68333e-05
  6  2.53441e-05
  7  11.762
  8  6.34706
  9  6.22095e-06
  10  12.7648
  11  3.42558e-06
  12  35.644
  13  3.17281e-05
  14  5.00008
  15  42.8368
  16  3.10417
  17  8.43153e-06
  18  4.73445
  19  3.46353
  20  3.95459
  21  1.15502e-05
  22  0.376111
  23  1.87734e-06
  24  11.9603
  25  0.251246
  26  0.228896
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.426e-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:  8.452e-01  2.289e-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.060e+00  2.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/102289/likelihoodResults_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.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) = 5990.94672029
delta logL = -0.00422709409759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5990.94249363
delta logL = -4.32372871728e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2329       1.0000          .0000       10.000    
     3 'Normalizat'    1.0605       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84529       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=   5990.942     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      243 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1436        .15784E-03** at limit **
   2  Index         2.2378        6.1183        .50000       -.36142E-04
   3  Normalizat    1.0604        .21095        .26025E-03    .49973E-03
   4  Prefactor     .84524        .21919        .29820E-03    .41566E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.23783
  Normalizat = 1.06043
  Prefactor  = 0.845243
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.942     FROM HESSE     STATUS=OK            29 CALLS      272 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1254        .31569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2378        6.1186        .50000       -.58528    
   3  Normalizat    1.0604        .21111        .52051E-04   -.91033    
   4  Prefactor     .84524        .21936        .59639E-04   -.98082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02421e-09
Minuit parameter uncertainties:
  1  8.25608e-05
  2  4.16908
  3  0.211274
  4  0.219586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/102289': 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) = 5990.94249311
delta logL = 8.38535925141e-08

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  8.256e-05  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.238e+00  4.169e+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:  8.452e-01  2.196e-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.060e+00  2.113e-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/102289/cmap_HighResolution_366854401_367113601_4FGL_J1150.4+2418_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.27e-03', job_status='DONE', photon_flux_upper_limit='6.90e-08', time_completed='2021-09-04 12:59:14.300856', job_id='102289', GAL2='0.85', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630785554.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='8.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='492' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:59:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 102289: <4FGL_J1150.4+2418_daily_bin492> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin492> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 12:46:19 2021
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:46:20 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:46:20 2021
Terminated at Sat Sep  4 12:59:15 2021
Results reported at Sat Sep  4 12:59:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin492 177.603 24.3016 366854401 367113601 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 :                                   760.11 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             301.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            776 sec.

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

