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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1084
RA = 177.603, Dec = 24.3016
tmin = 520300801, tmax = 520560001
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='105503', job_status='RUN', time_executed='2021-09-04 12:56:35.762669', time_epoch_executed='1630785395.76' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105503

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105503/ft1_4FGL_J1150.4+2418_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105503/ft2_4FGL_J1150.4+2418_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105503/ft1_4FGL_J1150.4+2418_daily_bin1084.fits outfile=/scratch/kocevski/105503/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1084.fits ra=177.603 dec=24.3016 rad=12.0 tmin=520300801.0 tmax=520560001.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 6.20
user 5.80
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105503/ft1_filtered_4FGL_J1150.4+2418_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/105503/ft2_4FGL_J1150.4+2418_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/105503/ltcube_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.fits outfile=/scratch/kocevski/105503/expmap_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.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/105503/ltcube_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.fits
.....................!
real 192.54
user 187.19
sys 4.92

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/105503/ft1_filtered_4FGL_J1150.4+2418_daily_bin1084.fits scfile=/scratch/kocevski/105503/ft2_4FGL_J1150.4+2418_daily_bin1084.fits outfile=/scratch/kocevski/105503/cmap_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.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/105503/ft1_filtered_4FGL_J1150.4+2418_daily_bin1084.fits scfile=/scratch/kocevski/105503/ft2_4FGL_J1150.4+2418_daily_bin1084.fits outfile=/scratch/kocevski/105503/cmap_HighResolution_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9050       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.0025       1.0000         .10000E-03   10000.    
     3 'norm      '    10.830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57271       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9337       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13528E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2129       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6105       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7499       1.0000         .10000E-03   10000.    
    13 'norm      '    6.5032       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7228       1.0000         .10000E-03   10000.    
    18 'norm      '    7.1270       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13609E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.478       1.0000         .10000E-03   10000.    
    22 'norm      '    .95114E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    6.3894       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78461       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94132       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=   3745.535     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2708 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9045        2.3612       -.17758E-06    .18133E-04
   2  Prefactor     6.0042        8.7051        .40116E-06   -.48955E-04
   3  norm          10.827        11.423       -.38197E-07    .50219E-04
   4  Prefactor     .53006        81.647       -.10046E-04   -.28996E-04
   5  Prefactor     1.9358        27.989       -.26836E-05    .36197E-04
   6  Prefactor     .10000E-03    31.007       -.17585E-05** at limit **
   7  Prefactor     .10000E-03    11.076       -.23654E-05** at limit **
   8  Prefactor     .10001E-03    6.2228       -.12730E-07** at limit **
   9  Prefactor     6.2094        17.096        .72557E-06    .10997E-03
  10  Prefactor     .10000E-03    3.4345       -.63404E-07** at limit **
  11  Prefactor     2.6099        2.0743       -.94246E-07    .67094E-04
  12  Prefactor     4.7528        30.900       -.20224E-05   -.54466E-04
  13  norm          6.5028        1.9911       -.31194E-07    .14226E-03
  14  Prefactor     .10000E-03    2.1894       -.19906E-06** at limit **
  15  Prefactor     .10000E-03    38.847       -.20444E-05** at limit **
  16  Prefactor     3.4162        3.1796        .51200E-07    .14757E-03
  17  Prefactor     3.7217        4.5127       -.45488E-06    .21282E-04
  18  norm          7.1282        4.1531       -.78891E-07    .31789E-03
  19  Prefactor     .10000E-03    2.4689       -.25887E-06** at limit **
  20  Prefactor     .10011E-03    3.6248       -.18242E-05** at limit **
  21  Prefactor     11.477        9.7234        .95807E-07    .14475E-03
  22  norm          .95124E-01    .15459       -.14769E-06   -.18805E-02
  23  norm          6.3884        8.5621       -.32541E-06    .20356E-03
  24  Prefactor     .10000E-03    7.8946       -.32600E-06** at limit **
  25  Normalizat    .78489        .21206        .12203E-05    .23347E-04
  26  Prefactor     .94113        .21405        .10715E-05    .54888E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90454
  Prefactor  = 6.00422
  norm       = 10.8268
  Prefactor  = 0.530062
  Prefactor  = 1.93579
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100007
  Prefactor  = 6.20942
  Prefactor  = 0.0001
  Prefactor  = 2.60994
  Prefactor  = 4.75285
  norm       = 6.50279
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.41625
  Prefactor  = 3.72165
  norm       = 7.12819
  Prefactor  = 0.0001
  Prefactor  = 0.000100107
  Prefactor  = 11.477
  norm       = 0.095124
  norm       = 6.38842
  Prefactor  = 0.0001
  Normalizat = 0.784893
  Prefactor  = 0.941128
 **********
 **   18 **HESSE 
 **********

 FCN=   3745.535     FROM HESSE     STATUS=OK           472 CALLS     3180 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9045        2.3485        .10075E-03   -1.5432    
   2  Prefactor     6.0042        8.6527        .16389E-03   -1.5218    
   3  norm          10.827        11.440        .12175E-03   -1.5050    
   4  Prefactor     .53006        99.963        .44069E-02   -1.5562    
   5  Prefactor     1.9358        28.321        .29864E-03   -1.5430    
   6  Prefactor     .10000E-03    31.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    10.511        .26851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2094        17.228        .16105E-03   -1.5210    
  10  Prefactor     .10000E-03    3.4408        .11078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.6099        2.0647        .74312E-04   -1.5385    
  12  Prefactor     4.7528        30.646        .18462E-03   -1.5272    
  13  norm          6.5028        1.9918        .45017E-04   -1.5198    
  14  Prefactor     .10000E-03    2.2240        .88460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    39.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4162        3.1653        .94808E-04   -1.5338    
  17  Prefactor     3.7217        4.4767        .12630E-03   -1.5322    
  18  norm          7.1282        4.0381        .89048E-04   -1.5174    
  19  Prefactor     .10000E-03    2.5375        .18704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10011E-03    23.256        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.477        9.6996        .11825E-03   -1.5030    
  22  norm          .95124E-01    .14190        .30730E-03   -1.5646    
  23  norm          6.3884        8.4894        .15879E-03   -1.5202    
  24  Prefactor     .10000E-03    7.9332        .16798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78489        .24132        .24257E-03   -1.0063    
  26  Prefactor     .94113        .24366        .24975E-03   -.94718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20328e-08
Minuit parameter uncertainties:
  1  2.34864
  2  8.65448
  3  11.4424
  4  14.5818
  5  14.8167
  6  0.000316396
  7  0.000288493
  8  0.0005517
  9  17.2415
  10  3.67935e-06
  11  2.06476
  12  24.1553
  13  1.99186
  14  8.5059e-06
  15  0.000373356
  16  3.16544
  17  4.4771
  18  4.03828
  19  1.98515e-06
  20  0.00315051
  21  9.70095
  22  0.141905
  23  8.49097
  24  2.21701e-05
  25  0.241651
  26  0.243946
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.610e+00  2.065e+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:  9.411e-01  2.439e-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:  7.849e-01  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.03
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 3.57e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.52e-05

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

Saving results to:
/scratch/kocevski/105503/likelihoodResults_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.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) = 3745.51928317
delta logL = 0.0158609883538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3745.51329838
delta logL = 0.0218457729225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8617       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0641       1.0000          .0000       10.000    
     3 'Normalizat'    .79433       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93462       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=   3745.513     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8619        73.742        .60077E-02    .12787E-03
   2  Index         2.0641        5.1731        .14358        .39629E-04
   3  Normalizat    .79434        .13906        .43536E-01    .10369E-04
   4  Prefactor     .93462        .97627E-01    .45445E-01    .58716E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.86193
  Index      = 2.06415
  Normalizat = 0.794338
  Prefactor  = 0.934623
 **********
 **   18 **HESSE 
 **********

 FCN=   3745.513     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8619        2.5076        .80729E-04   -1.5370    
   2  Index         2.0641        .77848        .83604E-02   -.62756    
   3  Normalizat    .79434        .22021        .24129E-03   -1.0028    
   4  Prefactor     .93462        .24344        .25051E-03   -.94942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52744e-10
Minuit parameter uncertainties:
  1  2.50769
  2  0.78336
  3  0.220461
  4  0.243721
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105503': 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) = 3745.51329837
delta logL = 0.0218457798801

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.862e+00  2.508e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.064e+00  7.834e-01  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:  9.346e-01  2.437e-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:  7.943e-01  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.06 +/- 0.78
Photon Flux (Free Index): 3.85e-08 +/- 4.41e-08
Energy Flux (Free Index): 2.29e-05 +/- 2.87e-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/105503/cmap_HighResolution_520300801_520560001_4FGL_J1150.4+2418_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.69e-03', comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='2.29e-05', photon_flux_error='3.57e-08', dlogl='2.18e-02', energy_flux='1.93e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2021-09-04 13:06:33.695834', photon_index_error2='0.78', photon_index2='2.06', ts='3.03', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='2.87e-05', EG='0.78', time_epoch_completed='1630785993.7', return_code='0', job_id='105503', GAL2='0.93', EG2='0.79', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='4.41e-08', ts2='3.06', photon_index='2.23' WHERE bin_id='1084' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:06:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 105503: <4FGL_J1150.4+2418_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin1084> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:20 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56:22 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:22 2021
Terminated at Sat Sep  4 13:06:34 2021
Results reported at Sat Sep  4 13:06:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin1084 177.603 24.3016 520300801 520560001 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 :                                   595.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   611 sec.
    Turnaround time :                            614 sec.

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

