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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin75
RA = 177.603, Dec = 24.3016
tmin = 258768001, tmax = 259027201
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='99352', job_status='RUN', time_executed='2021-09-04 12:39:38.075239', time_epoch_executed='1630784378.08' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99352

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99352/ft1_4FGL_J1150.4+2418_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99352/ft2_4FGL_J1150.4+2418_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99352/ft1_4FGL_J1150.4+2418_daily_bin75.fits outfile=/scratch/kocevski/99352/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin75.fits ra=177.603 dec=24.3016 rad=12.0 tmin=258768001.0 tmax=259027201.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.13
user 0.95
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99352/ft1_filtered_4FGL_J1150.4+2418_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/99352/ft2_4FGL_J1150.4+2418_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/99352/ltcube_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.fits outfile=/scratch/kocevski/99352/expmap_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.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/99352/ltcube_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.fits
.....................!
real 191.83
user 185.51
sys 5.76

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

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

This is gtbin version HEAD
real 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99352/ft1_filtered_4FGL_J1150.4+2418_daily_bin75.fits scfile=/scratch/kocevski/99352/ft2_4FGL_J1150.4+2418_daily_bin75.fits outfile=/scratch/kocevski/99352/cmap_HighResolution_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8793       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4086       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.304       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13447E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .73759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.7257       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.0088       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9234       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2989       1.0000         .10000E-03   10000.    
    22 'norm      '    .53959       1.0000         .10000E-03   10000.    
    23 'norm      '    .54972E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96021       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .70581       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=   3186.984     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3206 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8794        3.9621       -.16159E-06   -.80045E-04
   2  Prefactor     3.4097        9.1830        .93103E-05   -.18841E-03
   3  norm          .10000E-03    5.5247       -.34323E-05** at limit **
   4  Prefactor     .10000E-03    5.8281        .24960E-06** at limit **
   5  Prefactor     .10000E-03    103.16        .14504E-04** at limit **
   6  Prefactor     .10000E-03    165.63       -.21570E-04** at limit **
   7  Prefactor     51.275        26.753        .48145E-06   -.24190E-03
   8  Prefactor     .10000E-03    10.826       -.45576E-08** at limit **
   9  Prefactor     17.711        28.614        .30506E-06   -.21624E-04
  10  Prefactor     .10000E-03    5.0668       -.44319E-06** at limit **
  11  Prefactor     .74090        2.1615       -.24622E-06   -.66340E-03
  12  Prefactor     .10000E-03    33.847        .15325E-04** at limit **
  13  norm          6.2201        2.2789        .50409E-07   -.17858E-03
  14  Prefactor     .10000E-03    3.2130        .14421E-06** at limit **
  15  Prefactor     .10000E-03    35.568       -.17148E-04** at limit **
  16  Prefactor     7.7256        4.0951       -.37018E-06   -.59737E-04
  17  Prefactor     .10000E-03    3.4389        .76778E-07** at limit **
  18  norm          7.0091        4.3630       -.10854E-06   -.75097E-04
  19  Prefactor     .10000E-03    1.3715        .14419E-07** at limit **
  20  Prefactor     3.9236        3.0652        .92653E-07   -.17159E-03
  21  Prefactor     1.2972        7.2359       -.71332E-06   -.54862E-03
  22  norm          .53966        .33586        .42629E-07   -.48608E-03
  23  norm          .10000E-03    3.8482        .27496E-06** at limit **
  24  Prefactor     .10000E-03    5.4201        .32883E-05** at limit **
  25  Normalizat    .95990        .22906       -.86979E-06   -.62391E-04
  26  Prefactor     .70605        .22596       -.79868E-06   -.48634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87945
  Prefactor  = 3.40966
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 51.2746
  Prefactor  = 0.0001
  Prefactor  = 17.7109
  Prefactor  = 0.0001
  Prefactor  = 0.740903
  Prefactor  = 0.0001
  norm       = 6.22013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.72556
  Prefactor  = 0.0001
  norm       = 7.00911
  Prefactor  = 0.0001
  Prefactor  = 3.92359
  Prefactor  = 1.29723
  norm       = 0.539663
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.959895
  Prefactor  = 0.706052
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.984     FROM HESSE     STATUS=OK           458 CALLS     3664 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8794        3.9647        .89184E-04   -1.5223    
   2  Prefactor     3.4097        8.9907        .21912E-03   -1.5339    
   3  norm          .10000E-03    5.5388        .12960E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8291        .13300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    104.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    168.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     51.275        26.664        .55991E-04   -1.4275    
   8  Prefactor     .10000E-03    11.299        .36229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.711        28.162        .95109E-04   -1.4866    
  10  Prefactor     .10000E-03    5.0747        .12410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .74090        2.0642        .12620E-03   -1.5536    
  12  Prefactor     .10000E-03    34.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2201        2.2814        .48252E-04   -1.5209    
  14  Prefactor     .10000E-03    3.2491        .98721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    35.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.7256        4.0929        .78783E-04   -1.5152    
  17  Prefactor     .10000E-03    3.5836        .20379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.0091        4.3515        .87805E-04   -1.5178    
  19  Prefactor     .10000E-03    1.3739        .64412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.9236        3.0525        .81782E-04   -1.5312    
  21  Prefactor     1.2972        6.6415        .27946E-03   -1.5480    
  22  norm          .53966        .33299        .24123E-04   -1.5561    
  23  norm          .10000E-03    45.940        .20476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.4316        .12838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95990        .26713        .23022E-03   -.94386    
  26  Prefactor     .70605        .26084        .28143E-03   -1.0329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29823e-09
Minuit parameter uncertainties:
  1  3.96493
  2  8.99426
  3  5.69023e-07
  4  6.90332e-05
  5  0.000527755
  6  0.000709042
  7  26.6703
  8  7.98988e-07
  9  28.1827
  10  5.20577e-06
  11  2.06436
  12  2.15649e-05
  13  2.28141
  14  1.24079e-05
  15  4.79044e-05
  16  4.09303
  17  2.30787e-05
  18  4.35165
  19  2.18072e-06
  20  3.05262
  21  5.87125
  22  0.332993
  23  0.000209298
  24  1.29369e-06
  25  0.2675
  26  0.261296
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  7.409e-01  2.064e+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

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  7.061e-01  2.613e-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:  9.599e-01  2.675e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99352/likelihoodResults_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.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) = 3186.49060883
delta logL = 0.493182035475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3186.47275155
delta logL = 0.511039315878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15670       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9598       1.0000          .0000       10.000    
     3 'Normalizat'    .88952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75028       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=   3186.473     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      304 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15543        3.2372        .48714E-02    .10744E-02
   2  Index         3.9644        3.4737        .98660E-01    .85714E-04
   3  Normalizat    .88984        .55797E-01    .44768E-01    .35645E-05
   4  Prefactor     .74983        .58757E-01    .61863E-01    .69069E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.155429
  Index      = 3.96435
  Normalizat = 0.889841
  Prefactor  = 0.749829
 **********
 **   18 **HESSE 
 **********

 FCN=   3186.473     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      337 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15543        7.6569        .22013E-04   -1.5629    
   2  Index         3.9644        6.9620        .48274E-02   -.20864    
   3  Normalizat    .88984        .25826        .23781E-03   -.96818    
   4  Prefactor     .74983        .26015        .27363E-03   -1.0161    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.81772e-07
Minuit parameter uncertainties:
  1  2.18143
  2  7.28495
  3  0.258615
  4  0.260579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99352': 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) = 3186.47274657
delta logL = 0.511044291768

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.554e-01  2.181e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.964e+00  7.285e+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:  7.498e-01  2.606e-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.898e-01  2.586e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.26
Ra Dec: 177.603 24.302
Photon Index (Free Index): 3.96 +/- 7.28
Photon Flux (Free Index): 7.27e-08 +/- 1.07e-07
Energy Flux (Free Index): 1.09e-05 +/- 1.14e-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/99352/cmap_HighResolution_258768001_259027201_4FGL_J1150.4+2418_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', comment='SUCCESS', energy_flux2='1.09e-05', dlogl='5.11e-01', photon_flux2='7.27e-08', job_status='DONE', time_completed='2021-09-04 12:48:50.846394', photon_index_error2='7.28', photon_index2='3.96', ts='0.18', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.14e-05', EG='0.96', time_epoch_completed='1630784930.85', return_code='0', job_id='99352', GAL2='0.75', EG2='0.89', return_code2='102', photon_flux_error2='1.07e-07', ts2='1.26', photon_index='2.23' WHERE bin_id='75' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:48:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 99352: <4FGL_J1150.4+2418_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin75 177.603 24.3016 258768001 259027201 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 :                                   553.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   718 sec.
    Turnaround time :                            720 sec.

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

