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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin40
RA = 177.656, Dec = 41.9096
tmin = 249696001, tmax = 249955201
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='107463', job_status='RUN', time_executed='2021-09-04 13:02:13.062515', time_epoch_executed='1630785733.06' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107463

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107463/ft1_4FGL_J1150.6+4154_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107463/ft1_4FGL_J1150.6+4154_daily_bin40.fits outfile=/scratch/kocevski/107463/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin40.fits ra=177.656 dec=41.9096 rad=12.0 tmin=249696001.0 tmax=249955201.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.45
user 1.27
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.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/107463/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/107463/ltcube_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.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/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits
.....................!
real 12.66
user 12.31
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/107463/ltcube_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits outfile=/scratch/kocevski/107463/expmap_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.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/107463/ltcube_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits
.....................!
real 190.02
user 185.06
sys 4.63

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1150.6+4154 @ 177.656 41.9096

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits outfile=/scratch/kocevski/107463/cmap_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.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.656 yref=41.9096 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits outfile=/scratch/kocevski/107463/cmap_HighResolution_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.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.656 yref=41.9096 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/107463/Model_4FGL_J1150.6+4154_daily_bin40.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/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits.....................!
real 42.06
user 40.83
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits', '/scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits', expMap='/scratch/kocevski/107463/expmap_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits', expCube='/scratch/kocevski/107463/ltcube_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/107463/Model_4FGL_J1150.6+4154_daily_bin40.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1150.6+4154'

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  5.203e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/107463/ft1_filtered_4FGL_J1150.6+4154_daily_bin40.fits
Spacecraft file(s): /scratch/kocevski/107463/ft2_4FGL_J1150.6+4154_daily_bin40.fits
Exposure map: /scratch/kocevski/107463/expmap_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits
Exposure cube: /scratch/kocevski/107463/ltcube_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/107463/Model_4FGL_J1150.6+4154_daily_bin40.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) = 4568.58820148

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    280.12       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6441       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.014       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.233       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8437       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3299       1.0000         .10000E-03   10000.    
    13 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4950       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11838E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1162       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0941       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1828       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3066       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75396       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4568.585     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2709 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     280.13        132.48        .25091E-05    .25616E-04
   2  norm          1.6444        .47101        .21658E-06   -.19429E-02
   3  Prefactor     .10000E-03    18.585       -.37383E-05** at limit **
   4  Prefactor     11.997        28.747       -.11284E-04   -.42380E-04
   5  Prefactor     .10000E-03    35.774        .71053E-05** at limit **
   6  norm          .10000E-03    6.3742       -.17064E-05** at limit **
   7  norm          .10000E-03    21.206        .17110E-05** at limit **
   8  Prefactor     1.1932        5.5220        .59840E-05    .17914E-03
   9  Prefactor     30.273        73.240       -.83952E-05    .61820E-04
  10  norm          3.8446        2.9717       -.92601E-06   -.27439E-03
  11  Prefactor     .10000E-03    4.7643       -.14608E-05** at limit **
  12  Prefactor     6.3203        24.254       -.40145E-05   -.76250E-04
  13  norm          .10000E-03    .53680        .21023E-06** at limit **
  14  norm          7.4946        7.4900       -.89207E-07   -.56536E-04
  15  Prefactor     .10000E-03    40.972       -.75663E-05** at limit **
  16  Prefactor     .10002E-03    3.7670        .15561E-05** at limit **
  17  Prefactor     .10000E-03    15.986        .84172E-06** at limit **
  18  Prefactor     15.409        27.304        .14385E-05   -.28571E-03
  19  Prefactor     2.1065        98.493       -.96287E-05    .12115E-05
  20  Prefactor     1.0946        7.7365       -.11059E-05   -.17888E-03
  21  norm          5.1827        5.9992        .61831E-06   -.12377E-04
  22  Prefactor     8.3064        15.162        .13485E-06   -.27448E-04
  23  Normalizat    .75395        .17934       -.14135E-05   -.14611E-03
  24  Prefactor     .94850        .20656       -.48685E-06   -.13926E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 280.134
  norm       = 1.64439
  Prefactor  = 0.000100001
  Prefactor  = 11.9965
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.1932
  Prefactor  = 30.2732
  norm       = 3.84456
  Prefactor  = 0.0001
  Prefactor  = 6.32028
  norm       = 0.0001
  norm       = 7.49463
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  Prefactor  = 15.4088
  Prefactor  = 2.10654
  Prefactor  = 1.09457
  norm       = 5.18272
  Prefactor  = 8.30637
  Normalizat = 0.753951
  Prefactor  = 0.9485
 **********
 **   18 **HESSE 
 **********

 FCN=   4568.585     FROM HESSE     STATUS=OK           399 CALLS     3108 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     280.13        132.62        .12121E-03   -1.2345    
   2  norm          1.6444        .47889        .21124E-04   -1.5451    
   3  Prefactor     .10000E-03    18.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.997        29.032        .11557E-03   -1.5015    
   5  Prefactor     .10000E-03    35.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.3920        .16661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    21.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.1932        5.7850        .17779E-03   -1.5490    
   9  Prefactor     30.273        73.970        .72868E-04   -1.4607    
  10  norm          3.8446        2.9682        .91538E-04   -1.5316    
  11  Prefactor     .10000E-03    4.8867        .14422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3203        24.130        .15954E-03   -1.5205    
  13  norm          .10000E-03    1.6815        .94961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4946        7.4841        .14649E-03   -1.5160    
  15  Prefactor     .10000E-03    41.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    6.4043        .22467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.995        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.409        24.646        .10205E-03   -1.4923    
  19  Prefactor     2.1065        98.570        .28355E-03   -1.5418    
  20  Prefactor     1.0946        7.9643        .36241E-03   -1.5499    
  21  norm          5.1827        5.9868        .16815E-03   -1.5253    
  22  Prefactor     8.3064        15.138        .13910E-03   -1.5131    
  23  Normalizat    .75395        .20691        .23520E-03   -1.0180    
  24  Prefactor     .94850        .23850        .25780E-03   -.94466    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05545e-09
Minuit parameter uncertainties:
  1  132.765
  2  0.478891
  3  0.00019788
  4  29.0663
  5  0.000370541
  6  1.3982e-05
  7  6.85631e-05
  8  5.25518
  9  74.1957
  10  2.96828
  11  2.03689e-05
  12  24.167
  13  2.28922e-05
  14  7.48498
  15  3.32822e-05
  16  0.000640328
  17  3.8736e-05
  18  24.6623
  19  28.8694
  20  5.90591
  21  5.9875
  22  15.1445
  23  0.20713
  24  0.238762
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  7.495e+00  7.485e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.619e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.485e-01  2.388e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  7.540e-01  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 177.656 41.910
Photon Index (Fixed Index): 1.62 +/- 0.00
Photon Flux (Fixed Index): 9.54e-09 +/- 9.52e-09
Energy Flux (Fixed Index): 1.69e-05 +/- 1.69e-05

TS (Fixed Index): 2.77
Ra Dec: 177.656 41.910
Photon Flux Upper Limit: 3.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107463/likelihoodResults_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.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) = 4568.55226472
delta logL = 0.0327764841468

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4568.55024855
delta logL = 0.0347926551358

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0435       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8130       1.0000          .0000       5.0000    
     3 'Normalizat'    .75294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94781       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6750E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4568.550     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      229 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0436        7.4925        .15116E-03   -.59222E-04
   2  alpha         1.8132        .74381        .16193E-01   -.20567E-04
   3  Normalizat    .75296        .19240        .23534E-03    .25603E-04
   4  Prefactor     .94791        .23567        .25785E-03    .26719E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.0436
  alpha      = 1.81321
  Normalizat = 0.752963
  Prefactor  = 0.947911
 **********
 **   18 **HESSE 
 **********

 FCN=   4568.550     FROM HESSE     STATUS=OK            25 CALLS      254 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0436        7.3702        .30231E-04   -1.5177    
   2  alpha         1.8132        .73218        .64772E-03   -.27830    
   3  Normalizat    .75296        .19257        .94135E-05   -1.0184    
   4  Prefactor     .94791        .23591        .10314E-04   -.94486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1548e-11
Minuit parameter uncertainties:
  1  7.37118
  2  0.743999
  3  0.192748
  4  0.236161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107463': 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) = 4568.55024786
delta logL = 0.0347933460471

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  7.044e+00  7.371e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.813e+00  7.440e-01  0.000e+00  5.000e+00 ( 1.000e+00)
331         beta:  1.025e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
332           Eb:  1.870e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
672    Prefactor:  9.479e-01  2.362e-01  0.000e+00  1.000e+01 ( 1.000e+00)
673        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
674        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
671   Normalization:  7.530e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.83
Ra Dec: 177.656 41.910
Photon Index (Free Index): 1.81 +/- 0.74
Photon Flux (Free Index): 1.17e-08 +/- 1.42e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.76e-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/107463/cmap_HighResolution_249696001_249955201_4FGL_J1150.6+4154_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.84e-05', comment='SUCCESS', photon_flux='9.54e-09', energy_flux2='1.30e-05', photon_flux_error='9.52e-09', dlogl='3.48e-02', energy_flux='1.69e-05', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-04 13:12:39.215875', photon_index_error2='0.74', photon_index2='1.81', ts='2.77', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='3.86e-08', energy_flux_error2='1.76e-05', EG='0.75', time_epoch_completed='1630786359.22', return_code='0', job_id='107463', GAL2='0.95', EG2='0.75', return_code2='0', energy_flux_error='1.69e-05', photon_flux_error2='1.42e-08', ts2='2.83', photon_index='1.62' WHERE bin_id='40' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 107463: <4FGL_J1150.6+4154_daily_bin40> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin40> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 13:02:02 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:02:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:02:04 2021
Terminated at Sat Sep  4 13:12:39 2021
Results reported at Sat Sep  4 13:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin40 177.656 41.9096 249696001 249955201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1150.6+4154 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   626.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             345.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

