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


Performing analysis on: 4FGL_J1150.6+4154_daily_bin1020
RA = 177.656, Dec = 41.9096
tmin = 503712001, tmax = 503971201
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='113433', job_status='RUN', time_executed='2021-09-04 13:24:08.710268', time_epoch_executed='1630787048.71' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/113433

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/113433/ft1_4FGL_J1150.6+4154_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/113433/ft1_4FGL_J1150.6+4154_daily_bin1020.fits outfile=/scratch/kocevski/113433/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1020.fits ra=177.656 dec=41.9096 rad=12.0 tmin=503712001.0 tmax=503971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.64
user 5.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.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/113433/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin1020.fits evtable="EVENTS" outfile="/scratch/kocevski/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/113433/ltcube_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.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/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits
.....................!
real 11.95
user 11.47
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/113433/ltcube_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits outfile=/scratch/kocevski/113433/expmap_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.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/113433/ltcube_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits
.....................!
real 191.19
user 185.16
sys 5.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/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits scfile=/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits outfile=/scratch/kocevski/113433/cmap_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits scfile=/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits outfile=/scratch/kocevski/113433/cmap_HighResolution_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits', '/scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits', expMap='/scratch/kocevski/113433/expmap_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits', expCube='/scratch/kocevski/113433/ltcube_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/113433/Model_4FGL_J1150.6+4154_daily_bin1020.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/113433/ft1_filtered_4FGL_J1150.6+4154_daily_bin1020.fits
Spacecraft file(s): /scratch/kocevski/113433/ft2_4FGL_J1150.6+4154_daily_bin1020.fits
Exposure map: /scratch/kocevski/113433/expmap_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits
Exposure cube: /scratch/kocevski/113433/ltcube_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/113433/Model_4FGL_J1150.6+4154_daily_bin1020.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) = 5436.2478838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1234       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1664       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9886       1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.544       1.0000         .10000E-03   10000.    
    10 'norm      '    3.2650       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72655       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1901       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.440       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.1467       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.409       1.0000         .10000E-03   10000.    
    21 'norm      '    20.839       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68893       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2993       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=   5436.190     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2724 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.110       -.44474E-04** at limit **
   2  norm          1.1234        .34996       -.82815E-08    .33560E-04
   3  Prefactor     15.028        18.134       -.38084E-06   -.72328E-04
   4  Prefactor     5.1679        14.491       -.32126E-06   -.75519E-04
   5  Prefactor     .10000E-03    48.578        .24514E-04** at limit **
   6  norm          .10000E-03    9.8941        .22721E-05** at limit **
   7  norm          .10000E-03    13.742       -.41958E-05** at limit **
   8  Prefactor     1.9876        2.8316        .53681E-06   -.73641E-03
   9  Prefactor     39.538        49.496       -.66950E-05   -.41756E-04
  10  norm          3.2652        2.6772        .19317E-06   -.22943E-03
  11  Prefactor     .71784        3.9374        .15563E-05   -.51109E-03
  12  Prefactor     .10000E-03    33.006       -.33803E-04** at limit **
  13  norm          1.1907        1.0228       -.77280E-07   -.25079E-03
  14  norm          .10000E-03    5.5643        .17924E-06** at limit **
  15  Prefactor     22.424        31.212       -.11370E-04   -.11169E-03
  16  Prefactor     4.1476        4.0573       -.38440E-06   -.38850E-03
  17  Prefactor     .10000E-03    52.906        .33227E-04** at limit **
  18  Prefactor     .10000E-03    8.8421       -.10182E-05** at limit **
  19  Prefactor     .10000E-03    14.033       -.56571E-08** at limit **
  20  Prefactor     10.409        9.4152       -.14674E-05   -.17281E-02
  21  norm          20.844        10.018       -.41538E-06   -.27729E-03
  22  Prefactor     .10000E-03    20.531        .11533E-04** at limit **
  23  Normalizat    .68859        .18352        .25693E-05   -.17232E-03
  24  Prefactor     1.2997        .21548       -.12763E-06   -.55853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.12336
  Prefactor  = 15.0277
  Prefactor  = 5.16791
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98759
  Prefactor  = 39.538
  norm       = 3.26516
  Prefactor  = 0.717837
  Prefactor  = 0.0001
  norm       = 1.19075
  norm       = 0.0001
  Prefactor  = 22.4236
  Prefactor  = 4.14758
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4094
  norm       = 20.8437
  Prefactor  = 0.0001
  Normalizat = 0.688587
  Prefactor  = 1.29967
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.190     FROM HESSE     STATUS=OK           401 CALLS     3125 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1234        .35191        .22284E-04   -1.5496    
   3  Prefactor     15.028        18.090        .10329E-03   -1.4932    
   4  Prefactor     5.1679        14.457        .17687E-03   -1.5253    
   5  Prefactor     .10000E-03    48.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.9639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    13.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.9876        2.7960        .12021E-03   -1.5426    
   9  Prefactor     39.538        49.617        .63740E-04   -1.4450    
  10  norm          3.2652        2.6585        .99438E-04   -1.5347    
  11  Prefactor     .71784        11.134        .25994E-02   -1.5539    
  12  Prefactor     .10000E-03    32.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1907        1.0090        .65332E-04   -1.5490    
  14  norm          .10000E-03    5.5848        .16985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.424        30.920        .84556E-04   -1.4761    
  16  Prefactor     4.1476        4.0689        .13632E-03   -1.5301    
  17  Prefactor     .10000E-03    52.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.8464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.409        9.5408        .62094E-03   -1.5063    
  21  norm          20.844        10.018        .87742E-04   -1.4795    
  22  Prefactor     .10000E-03    20.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68859        .21915        .27510E-03   -1.0435    
  24  Prefactor     1.2997        .25898        .25655E-03   -.83317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71169e-09
Minuit parameter uncertainties:
  1  3.5254e-06
  2  0.351914
  3  18.0963
  4  14.4663
  5  3.61241e-05
  6  9.28226e-06
  7  1.14708e-06
  8  2.79614
  9  49.6686
  10  2.65864
  11  5.65491
  12  1.54296e-05
  13  1.00899
  14  4.43082e-06
  15  30.9416
  16  4.06912
  17  6.37897e-05
  18  6.24057e-07
  19  6.86802e-05
  20  9.54219
  21  10.0186
  22  1.99306e-05
  23  0.219433
  24  0.259241
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  4.431e-06  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:  1.300e+00  2.592e-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:  6.886e-01  2.194e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/113433/likelihoodResults_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.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) = 5436.19078654
delta logL = -0.000845676380777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5434.22102461
delta logL = 1.96891624897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11733       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.4832       1.0000          .0000       5.0000    
     3 'Normalizat'    .57867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3764       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.

 FCN=   5434.221     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      296 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .11726        1.2875        .33121E-02    .14335E-02
   2  alpha         4.4834        4.3923        .24558        .38885E-04
   3  Normalizat    .57869        .56671E-01    .67259E-01    .26081E-04
   4  Prefactor     1.3763        .70639E-01    .56540E-01   -.46749E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.11726
  alpha      = 4.48343
  Normalizat = 0.578693
  Prefactor  = 1.37633
 **********
 **   18 **HESSE 
 **********

 FCN=   5434.221     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      329 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .11726        2.1644        .14933E-04   -1.5640    
   2  alpha         4.4834        4.6838        .11321E-01    .91633    
   3  Normalizat    .57869        .19014        .29766E-03   -1.0890    
   4  Prefactor     1.3763        .23528        .24999E-03   -.81065    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.25018e-07
Minuit parameter uncertainties:
  1  1.00717
  2  3.32
  3  0.190359
  4  0.235459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/113433': 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) = 5434.22102458
delta logL = 1.96891628246

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.173e-01  1.007e+00  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  4.483e+00  3.320e+00  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:  1.376e+00  2.355e-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:  5.787e-01  1.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.15
Ra Dec: 177.656 41.910
Photon Index (Free Index): 4.48 +/- 3.32
Photon Flux (Free Index): 8.34e-08 +/- 5.06e-08
Energy Flux (Free Index): 1.24e-05 +/- 9.31e-06

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/113433/cmap_HighResolution_503712001_503971201_4FGL_J1150.6+4154_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-05', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='1.97e+00', photon_flux2='8.34e-08', job_status='DONE', time_completed='2021-09-04 13:36:06.285511', photon_index_error2='3.32', photon_index2='4.48', ts='-0.00', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='9.31e-06', EG='0.69', time_epoch_completed='1630787766.29', return_code='0', job_id='113433', GAL2='1.38', EG2='0.58', return_code2='102', photon_flux_error2='5.06e-08', ts2='4.15', photon_index='1.62' WHERE bin_id='1020' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:36:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 113433: <4FGL_J1150.6+4154_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin1020> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 13:21:00 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:21:02 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:21:02 2021
Terminated at Sat Sep  4 13:36:07 2021
Results reported at Sat Sep  4 13:36:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin1020 177.656 41.9096 503712001 503971201 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 :                                   715.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            907 sec.

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

