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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin973
RA = 177.603, Dec = 24.3016
tmin = 491529601, tmax = 491788801
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='105341', job_status='RUN', time_executed='2021-09-04 12:56:24.870218', time_epoch_executed='1630785384.87' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105341/ft1_4FGL_J1150.4+2418_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105341/ft1_4FGL_J1150.4+2418_daily_bin973.fits outfile=/scratch/kocevski/105341/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin973.fits ra=177.603 dec=24.3016 rad=12.0 tmin=491529601.0 tmax=491788801.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 3.84
user 3.25
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105341/ft1_filtered_4FGL_J1150.4+2418_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/105341/ltcube_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.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/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits
.....................!
real 11.93
user 11.46
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105341/ft1_filtered_4FGL_J1150.4+2418_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/105341/ltcube_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.fits outfile=/scratch/kocevski/105341/expmap_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.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/105341/ltcube_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.fits
.....................!
real 190.14
user 184.96
sys 4.56

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/105341/ft1_filtered_4FGL_J1150.4+2418_daily_bin973.fits scfile=/scratch/kocevski/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits outfile=/scratch/kocevski/105341/cmap_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105341/ft1_filtered_4FGL_J1150.4+2418_daily_bin973.fits scfile=/scratch/kocevski/105341/ft2_4FGL_J1150.4+2418_daily_bin973.fits outfile=/scratch/kocevski/105341/cmap_HighResolution_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18516E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .67789       1.0000         .10000E-03   10000.    
     3 'norm      '    12.691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    95.538       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.5786       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7125       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27630       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3643       1.0000         .10000E-03   10000.    
    22 'norm      '    .64905       1.0000         .10000E-03   10000.    
    23 'norm      '    6.0949       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.115       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .86523       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0442       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=   5380.637     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3131 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7931        .15744E-06** at limit **
   2  Prefactor     .67841        4.9495       -.15316E-06   -.13221E-03
   3  norm          12.696        15.217        .44078E-06   -.15083E-04
   4  Prefactor     .10000E-03    32.929       -.90455E-05** at limit **
   5  Prefactor     .10000E-03    15.294        .86030E-06** at limit **
   6  Prefactor     95.556        57.605        .15051E-04    .17658E-04
   7  Prefactor     .10000E-03    7.6214        .11226E-05** at limit **
   8  Prefactor     .10000E-03    5.7183        .25728E-08** at limit **
   9  Prefactor     .10000E-03    8.3142       -.11635E-05** at limit **
  10  Prefactor     .10000E-03    3.8393        .77817E-08** at limit **
  11  Prefactor     .10000E-03    .74612        .16502E-07** at limit **
  12  Prefactor     .10000E-03    59.565       -.17575E-04** at limit **
  13  norm          3.5777        1.4405        .73352E-07   -.95118E-04
  14  Prefactor     .10000E-03    2.5834        .52985E-07** at limit **
  15  Prefactor     .10000E-03    46.229        .24982E-04** at limit **
  16  Prefactor     .10000E-03    1.0519        .22226E-07** at limit **
  17  Prefactor     .10000E-03    2.0263        .35306E-07** at limit **
  18  norm          8.7129        3.0783        .40347E-07    .12491E-03
  19  Prefactor     .10000E-03    .72772        .75060E-08** at limit **
  20  Prefactor     .27682        1.5747       -.44939E-06   -.68127E-03
  21  Prefactor     4.3650        4.2343        .19160E-06    .13341E-03
  22  norm          .64915        .27726        .30065E-07   -.34608E-03
  23  norm          6.0961        4.7147        .17276E-06   -.10610E-03
  24  Prefactor     18.117        10.542        .29331E-06    .36421E-04
  25  Normalizat    .86486        .19045       -.20185E-05    .15756E-03
  26  Prefactor     1.0443        .19312       -.92118E-07    .61952E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.67841
  norm       = 12.6964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 95.5562
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.5777
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.71291
  Prefactor  = 0.0001
  Prefactor  = 0.276818
  Prefactor  = 4.36498
  norm       = 0.649148
  norm       = 6.09609
  Prefactor  = 18.117
  Normalizat = 0.864856
  Prefactor  = 1.04432
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.637     FROM HESSE     STATUS=OK           458 CALLS     3589 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3249        .18986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .67841        21.565        .30871E-02   -1.5543    
   3  norm          12.696        15.328        .11244E-03   -1.4995    
   4  Prefactor     .10000E-03    33.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     95.556        57.492        .41121E-04   -1.3750    
   7  Prefactor     .10000E-03    7.7072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8774        .34230E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8452        .14036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .75704        .61830E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    60.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.5777        1.4391        .53339E-04   -1.5330    
  14  Prefactor     .10000E-03    2.6403        .11503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0649        .73421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.0796        .20371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7129        3.0719        .73538E-04   -1.5118    
  19  Prefactor     .10000E-03    .74205        .61036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27682        2.9538        .17200E-02   -1.5603    
  21  Prefactor     4.3650        4.2356        .14292E-03   -1.5290    
  22  norm          .64915        .27625        .23936E-04   -1.5547    
  23  norm          6.0961        4.7016        .13334E-03   -1.5214    
  24  Prefactor     18.117        10.512        .94103E-04   -1.4856    
  25  Normalizat    .86486        .21659        .25564E-03   -.97706    
  26  Prefactor     1.0443        .22176        .25342E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.57888e-10
Minuit parameter uncertainties:
  1  3.01207e-05
  2  7.65221
  3  15.3332
  4  0.000114047
  5  2.89854e-05
  6  57.5255
  7  1.05736e-05
  8  3.08112e-05
  9  1.1778e-05
  10  4.3566e-06
  11  2.41661e-06
  12  0.000393835
  13  1.43916
  14  5.96553e-06
  15  4.54459e-07
  16  2.05242e-06
  17  5.97137e-06
  18  3.07193
  19  1.0097e-06
  20  1.80828
  21  4.23586
  22  0.276246
  23  4.70186
  24  10.5134
  25  0.21681
  26  0.221956
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.417e-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.044e+00  2.220e-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.649e-01  2.168e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105341/likelihoodResults_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.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) = 5380.64294851
delta logL = -0.00620158822585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5380.63674968
delta logL = -2.76579157799e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10540E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2074       1.0000          .0000       10.000    
     3 'Normalizat'    .86497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0443       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=   5380.637     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      203 TOTAL
                     EDM=   .18E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9990        .90712E-02** at limit **
   2  Index         1.8165        5.0222        .50000       -.13360E-06
   3  Normalizat    .86486        .81004E-02    .44452E-01    .13131E-04
   4  Prefactor     1.0443        .87880E-02    .40256E-01    .63738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.81645
  Normalizat = 0.864855
  Prefactor  = 1.04432
 **********
 **   18 **HESSE 
 **********

 FCN=   5380.637     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      236 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.481        .68479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8165        8.3781        .50000       -.69022    
   3  Normalizat    .86486        .35496E-01    .25564E-03   -.97706    
   4  Prefactor     1.0443        .38518E-01    .25342E-03   -.91266    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8296e-12
Minuit parameter uncertainties:
  1  1.80064e-05
  2  327.444
  3  0.0354966
  4  0.0385194
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105341': 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) = 5380.63673497
delta logL = 1.1948752217e-05

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
609   Normalization:  8.649e-01  3.550e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105341/cmap_HighResolution_491529601_491788801_4FGL_J1150.4+2418_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-09-04 13:08:03.035763', job_id='105341', GAL2='1.04', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630786083.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='973' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:08:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 105341: <4FGL_J1150.4+2418_daily_bin973> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin973> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:09 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:10 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:56:10 2021
Terminated at Sat Sep  4 13:08:03 2021
Results reported at Sat Sep  4 13:08:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin973 177.603 24.3016 491529601 491788801 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 :                                   696.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

