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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1110
RA = 177.603, Dec = 24.3016
tmin = 527040001, tmax = 527299201
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='105541', job_status='RUN', time_executed='2021-09-04 12:59:05.396730', time_epoch_executed='1630785545.4' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1110'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105541

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105541/ft1_4FGL_J1150.4+2418_daily_bin1110.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105541/ft1_4FGL_J1150.4+2418_daily_bin1110.fits outfile=/scratch/kocevski/105541/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1110.fits ra=177.603 dec=24.3016 rad=12.0 tmin=527040001.0 tmax=527299201.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.99
user 5.72
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105541/ft1_filtered_4FGL_J1150.4+2418_daily_bin1110.fits" evtable="EVENTS" scfile=/scratch/kocevski/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits sctable="SC_DATA" outfile=/scratch/kocevski/105541/ltcube_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.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/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits
.....................!
real 12.12
user 11.72
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105541/ft1_filtered_4FGL_J1150.4+2418_daily_bin1110.fits evtable="EVENTS" scfile=/scratch/kocevski/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits sctable="SC_DATA" expcube=/scratch/kocevski/105541/ltcube_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.fits outfile=/scratch/kocevski/105541/expmap_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.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/105541/ltcube_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.fits
.....................!
real 191.89
user 186.01
sys 5.50

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/105541/ft1_filtered_4FGL_J1150.4+2418_daily_bin1110.fits scfile=/scratch/kocevski/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits outfile=/scratch/kocevski/105541/cmap_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105541/ft1_filtered_4FGL_J1150.4+2418_daily_bin1110.fits scfile=/scratch/kocevski/105541/ft2_4FGL_J1150.4+2418_daily_bin1110.fits outfile=/scratch/kocevski/105541/cmap_HighResolution_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.4845       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.554       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.725       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.0986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.889       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1528       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52118E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.350       1.0000         .10000E-03   10000.    
    13 'norm      '    5.2332       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7376       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    22.117       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.647       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.3596       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6544       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .50371       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=   5280.843     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3116 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4996        3.2934        .78513E-07   -.11740E-04
   2  Prefactor     .10000E-03    4.9332       -.17747E-06** at limit **
   3  norm          8.4903        14.280        .34404E-06   -.76554E-05
   4  Prefactor     12.556        10.828        .97606E-07    .48771E-05
   5  Prefactor     15.728        16.306        .88872E-07   -.54240E-05
   6  Prefactor     5.1482        175.34       -.12869E-04    .99641E-05
   7  Prefactor     .10000E-03    4.8255        .85702E-07** at limit **
   8  Prefactor     10.890        6.8826        .57099E-08   -.25935E-05
   9  Prefactor     17.467        30.684       -.98265E-06    .88277E-05
  10  Prefactor     3.1546        10.888        .28291E-05    .38289E-04
  11  Prefactor     .10000E-03    1.4298       -.21203E-07** at limit **
  12  Prefactor     55.357        41.188       -.21358E-06    .58769E-05
  13  norm          5.2334        2.0147        .38877E-07   -.16064E-04
  14  Prefactor     .10000E-03    2.9646       -.52784E-08** at limit **
  15  Prefactor     .10000E-03    50.436       -.18134E-06** at limit **
  16  Prefactor     3.7379        3.5880       -.91250E-08    .20714E-04
  17  Prefactor     .10000E-03    2.6093       -.96129E-07** at limit **
  18  norm          22.117        5.9205       -.53296E-07    .92526E-05
  19  Prefactor     .10000E-03    1.7984        .33606E-07** at limit **
  20  Prefactor     1.5109        2.9181        .91388E-07   -.54120E-05
  21  Prefactor     .10000E-03    2.8304        .63989E-08** at limit **
  22  norm          .10000E-03    .71617E-01   -.41307E-07** at limit **
  23  norm          18.648        7.6426       -.22838E-07    .55654E-05
  24  Prefactor     5.3604        9.3925        .23596E-08   -.50377E-06
  25  Normalizat    1.6540        .25240       -.17671E-05    .40278E-04
  26  Prefactor     .50405        .23121        .34910E-05    .27049E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.49958
  Prefactor  = 0.0001
  norm       = 8.49035
  Prefactor  = 12.5558
  Prefactor  = 15.7282
  Prefactor  = 5.14821
  Prefactor  = 0.0001
  Prefactor  = 10.89
  Prefactor  = 17.4668
  Prefactor  = 3.15455
  Prefactor  = 0.000100003
  Prefactor  = 55.3573
  norm       = 5.23335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7379
  Prefactor  = 0.0001
  norm       = 22.1169
  Prefactor  = 0.0001
  Prefactor  = 1.51092
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.6475
  Prefactor  = 5.36045
  Normalizat = 1.65396
  Prefactor  = 0.504054
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.843     FROM HESSE     STATUS=OK           470 CALLS     3586 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4996        3.2638        .18618E-03   -1.5463    
   2  Prefactor     .10000E-03    4.9653        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.4903        14.304        .13762E-03   -1.5125    
   4  Prefactor     12.556        10.829        .11306E-03   -1.4999    
   5  Prefactor     15.728        16.305        .10100E-03   -1.4915    
   6  Prefactor     5.1482        177.38        .17806E-03   -1.5254    
   7  Prefactor     .10000E-03    4.8280        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.890        6.8786        .12141E-03   -1.5048    
   9  Prefactor     17.467        29.852        .95873E-04   -1.4872    
  10  Prefactor     3.1546        11.103        .11414E-02   -1.5353    
  11  Prefactor     .10000E-03    34.865        .15599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     55.357        41.254        .53917E-04   -1.4219    
  13  norm          5.2334        2.0117        .60317E-04   -1.5250    
  14  Prefactor     .10000E-03    2.9911        .12207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7379        3.5711        .12660E-03   -1.5321    
  17  Prefactor     .10000E-03    2.6516        .11431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          22.117        5.8884        .85171E-04   -1.4767    
  19  Prefactor     .10000E-03    1.8269        .94897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5109        2.8767        .15889E-03   -1.5462    
  21  Prefactor     .10000E-03    2.8353        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .75990E-01    .37903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.648        7.6327        .92751E-04   -1.4844    
  24  Prefactor     5.3604        9.3697        .17359E-03   -1.5245    
  25  Normalizat    1.6540        .27866        .23626E-03   -.73539    
  26  Prefactor     .50405        .25284        .40257E-03   -1.1179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10153e-10
Minuit parameter uncertainties:
  1  3.26418
  2  1.06135e-06
  3  14.3095
  4  10.8302
  5  16.3101
  6  60.6335
  7  1.478e-06
  8  6.87912
  9  29.8778
  10  11.1099
  11  0.000693355
  12  41.2757
  13  2.0117
  14  2.25717e-06
  15  1.70074e-05
  16  3.57133
  17  3.27949e-06
  18  5.88853
  19  1.187e-06
  20  2.87695
  21  1.53487e-06
  22  2.21216e-07
  23  7.63311
  24  9.37224
  25  0.278921
  26  0.25341
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  6.934e-04  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.041e-01  2.534e-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.654e+00  2.789e-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: 1.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105541/likelihoodResults_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.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) = 5280.84363489
delta logL = -0.000138475181302

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5280.31416457
delta logL = 0.529331847452

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18442       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0296       1.0000          .0000       10.000    
     3 'Normalizat'    1.5488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56263       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=   5280.314     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      275 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18519        2.7860        .65521E-02    .22588E-02
   2  Index         4.0286        2.8141        .10242        .15516E-03
   3  Normalizat    1.5487        .48376E-01    .54836E-01   -.45840E-05
   4  Prefactor     .56310        .48905E-01    .86291E-01    .26924E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.185192
  Index      = 4.02865
  Normalizat = 1.54867
  Prefactor  = 0.563101
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.314     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18519        8.1858        .29350E-04   -1.5622    
   2  Index         4.0286        7.0064        .53735E-02   -.19551    
   3  Normalizat    1.5487        .22599        .24245E-03   -.76420    
   4  Prefactor     .56310        .22619        .38234E-03   -1.0916    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.52598e-10
Minuit parameter uncertainties:
  1  2.46216
  2  6.35525
  3  0.22614
  4  0.226551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105541': 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) = 5280.31415744
delta logL = 0.529338973267

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.852e-01  2.462e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  4.029e+00  6.355e+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.631e-01  2.266e-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.549e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 177.603 24.302
Photon Index (Free Index): 4.03 +/- 6.36
Photon Flux (Free Index): 9.90e-08 +/- 9.86e-08
Energy Flux (Free Index): 1.47e-05 +/- 2.19e-05

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/105541/cmap_HighResolution_527040001_527299201_4FGL_J1150.4+2418_daily_bin1110.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', energy_flux2='1.47e-05', dlogl='5.29e-01', photon_flux2='9.90e-08', job_status='DONE', time_completed='2021-09-04 13:11:06.926532', photon_index_error2='6.36', photon_index2='4.03', ts='-0.00', fit_tolerance='1e-08', GAL='0.50', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='2.19e-05', EG='1.65', time_epoch_completed='1630786266.93', return_code='0', job_id='105541', GAL2='0.56', EG2='1.55', return_code2='102', photon_flux_error2='9.86e-08', ts2='1.15', photon_index='2.23' WHERE bin_id='1110' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:11:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 105541: <4FGL_J1150.4+2418_daily_bin1110> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1110 177.603 24.3016 527040001 527299201 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 :                                   718.51 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             252.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            885 sec.

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

