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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin1009
RA = 177.603, Dec = 24.3016
tmin = 500860801, tmax = 501120001
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='105395', job_status='RUN', time_executed='2021-09-04 12:56:35.598906', time_epoch_executed='1630785395.6' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105395

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105395/ft1_4FGL_J1150.4+2418_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105395/ft2_4FGL_J1150.4+2418_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105395/ft1_4FGL_J1150.4+2418_daily_bin1009.fits outfile=/scratch/kocevski/105395/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin1009.fits ra=177.603 dec=24.3016 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.95
user 4.28
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105395/ft1_filtered_4FGL_J1150.4+2418_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/105395/ft2_4FGL_J1150.4+2418_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/105395/ltcube_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.fits outfile=/scratch/kocevski/105395/expmap_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.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/105395/ltcube_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.fits
.....................!
real 190.07
user 185.29
sys 4.35

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/105395/ft1_filtered_4FGL_J1150.4+2418_daily_bin1009.fits scfile=/scratch/kocevski/105395/ft2_4FGL_J1150.4+2418_daily_bin1009.fits outfile=/scratch/kocevski/105395/cmap_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105395/ft1_filtered_4FGL_J1150.4+2418_daily_bin1009.fits scfile=/scratch/kocevski/105395/ft2_4FGL_J1150.4+2418_daily_bin1009.fits outfile=/scratch/kocevski/105395/cmap_HighResolution_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.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/105395/ft1_filtered_4FGL_J1150.4+2418_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/105395/ft2_4FGL_J1150.4+2418_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/105395/Model_4FGL_J1150.4+2418_daily_bin1009.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/105395/ft1_filtered_4FGL_J1150.4+2418_daily_bin1009.fits.....................!
real 51.86
user 50.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4875       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9236       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .47247E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1953       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18344E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.316       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9067       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71093E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    12.853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10802E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.125       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.6118       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67934       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4245       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=   5456.175     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2768 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4878        2.7275        .31623E-07   -.70032E-04
   2  Prefactor     .10000E-03    3.6854       -.22548E-06** at limit **
   3  norm          2.9229        12.387        .61000E-06   -.47723E-04
   4  Prefactor     .10001E-03    7.7520       -.35488E-06** at limit **
   5  Prefactor     .10000E-03    25.931        .34376E-05** at limit **
   6  Prefactor     4.1725        99.391       -.54965E-05   -.62166E-04
   7  Prefactor     .10001E-03    9.9905       -.27967E-06** at limit **
   8  Prefactor     .59998        6.1043        .24345E-05   -.32961E-03
   9  Prefactor     .10000E-03    19.769        .11180E-05** at limit **
  10  Prefactor     .10000E-03    19.777       -.79330E-06** at limit **
  11  Prefactor     3.4314        2.4158        .65297E-07   -.60344E-04
  12  Prefactor     11.317        22.830       -.15635E-05   -.12684E-03
  13  norm          4.9067        1.5438        .45116E-08   -.14189E-03
  14  Prefactor     .10000E-03    2.4866       -.21267E-06** at limit **
  15  Prefactor     .10000E-03    25.072       -.35138E-05** at limit **
  16  Prefactor     5.0134        3.1854        .67021E-06   -.10294E-02
  17  Prefactor     .10000E-03    2.5772       -.12024E-06** at limit **
  18  norm          12.851        4.5050        .11789E-06    .12878E-03
  19  Prefactor     .10000E-03    2.5167        .72410E-07** at limit **
  20  Prefactor     .10000E-03    2.2348        .43572E-06** at limit **
  21  Prefactor     .10000E-03    4.4618        .50130E-07** at limit **
  22  norm          .10000E-03    .14868        .18605E-07** at limit **
  23  norm          11.124        5.9029       -.67799E-07   -.19232E-03
  24  Prefactor     7.6105        13.091        .16793E-06   -.51919E-04
  25  Normalizat    .67919        .20064       -.11601E-06   -.55052E-04
  26  Prefactor     1.4246        .20989       -.60055E-06    .17076E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48781
  Prefactor  = 0.0001
  norm       = 2.9229
  Prefactor  = 0.000100012
  Prefactor  = 0.000100004
  Prefactor  = 4.17249
  Prefactor  = 0.000100007
  Prefactor  = 0.599976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.43139
  Prefactor  = 11.3175
  norm       = 4.9067
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 5.01339
  Prefactor  = 0.0001
  norm       = 12.8512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.1236
  Prefactor  = 7.61049
  Normalizat = 0.679194
  Prefactor  = 1.42459
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.175     FROM HESSE     STATUS=OK           474 CALLS     3242 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4878        2.7209        .10421E-03   -1.5334    
   2  Prefactor     .10000E-03    3.7085        .13856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9229        12.442        .23759E-03   -1.5366    
   4  Prefactor     .10001E-03    35.105        .39373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1725        105.40        .19676E-03   -1.5299    
   7  Prefactor     .10001E-03    12.963        .73224E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .59998        6.6843        .35952E-03   -1.5553    
   9  Prefactor     .10000E-03    19.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.4314        2.4099        .91079E-04   -1.5337    
  12  Prefactor     11.317        23.046        .11910E-03   -1.5035    
  13  norm          4.9067        1.5424        .49363E-04   -1.5265    
  14  Prefactor     .10000E-03    13.953        .21628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    26.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0134        3.3140        .51941E-03   -1.5260    
  17  Prefactor     .10000E-03    2.6461        .23126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.851        4.4026        .86718E-04   -1.4991    
  19  Prefactor     .10000E-03    2.5698        .22716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7688        .20174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4902        .15223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .32055        .54836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.124        5.8870        .12012E-03   -1.5041    
  24  Prefactor     7.6105        12.845        .14535E-03   -1.5156    
  25  Normalizat    .67919        .22986        .29915E-03   -1.0472    
  26  Prefactor     1.4246        .24713        .24423E-03   -.79674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64693e-09
Minuit parameter uncertainties:
  1  2.72095
  2  1.64187e-05
  3  12.065
  4  0.00127829
  5  0.00067849
  6  42.025
  7  0.000597879
  8  4.00544
  9  0.000186227
  10  0.000119495
  11  2.40994
  12  23.0644
  13  1.54244
  14  2.82077e-05
  15  0.000689686
  16  3.31415
  17  8.99774e-06
  18  4.40276
  19  1.25073e-05
  20  8.02449e-05
  21  3.06658e-06
  22  1.17845e-06
  23  5.88727
  24  12.8501
  25  0.230183
  26  0.247332
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.431e+00  2.410e+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:  1.425e+00  2.473e-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:  6.792e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 5.94e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 2.53e-05 +/- 1.78e-05

TS (Fixed Index): 3.59
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/105395/likelihoodResults_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.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) = 5456.16568283
delta logL = 0.00930585190417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5456.15962649
delta logL = 0.0153621995096

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1349       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3302       1.0000          .0000       10.000    
     3 'Normalizat'    .67188       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4303       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=   5456.160     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1325        49.725        .57241E-02    .93420E-03
   2  Index         2.3317        6.1637        .12863        .20080E-03
   3  Normalizat    .67162        .89955E-01    .67951E-01   -.19587E-03
   4  Prefactor     1.4307        .83888E-01    .55142E-01   -.19485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1325
  Index      = 2.33167
  Normalizat = 0.671617
  Prefactor  = 1.43071
 **********
 **   18 **HESSE 
 **********

 FCN=   5456.160     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1325        3.0563        .85479E-04   -1.5354    
   2  Index         2.3317        .64583        .63224E-02   -.56293    
   3  Normalizat    .67162        .21943        .30071E-03   -1.0502    
   4  Prefactor     1.4307        .24770        .24380E-03   -.79499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58071e-10
Minuit parameter uncertainties:
  1  3.05646
  2  0.648369
  3  0.21972
  4  0.247906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105395': 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) = 5456.15962118
delta logL = 0.0153675044476

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.133e+00  3.056e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.332e+00  6.484e-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:  1.431e+00  2.479e-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:  6.716e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.60
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.33 +/- 0.65
Photon Flux (Free Index): 6.41e-08 +/- 5.04e-08
Energy Flux (Free Index): 2.31e-05 +/- 2.09e-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/105395/cmap_HighResolution_500860801_501120001_4FGL_J1150.4+2418_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', comment='SUCCESS', photon_flux='5.94e-08', energy_flux2='2.31e-05', photon_flux_error='4.17e-08', dlogl='1.54e-02', energy_flux='2.53e-05', photon_flux2='6.41e-08', job_status='DONE', time_completed='2021-09-04 13:08:11.025750', photon_index_error2='0.65', photon_index2='2.33', ts='3.59', fit_tolerance='1e-08', GAL='1.42', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='2.09e-05', EG='0.68', time_epoch_completed='1630786091.03', return_code='0', job_id='105395', GAL2='1.43', EG2='0.67', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='5.04e-08', ts2='3.60', photon_index='2.23' WHERE bin_id='1009' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:08:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 105395: <4FGL_J1150.4+2418_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

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

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

