/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 156 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.6+4154_daily_bin39
RA = 177.656, Dec = 41.9096
tmin = 249436801, tmax = 249696001
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='107461', job_status='RUN', time_executed='2021-09-04 13:04:49.525635', time_epoch_executed='1630785889.53' WHERE source_name='4FGL J1150.6+4154' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/107461

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/107461/ft1_4FGL_J1150.6+4154_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/107461/ft2_4FGL_J1150.6+4154_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/107461/ft1_4FGL_J1150.6+4154_daily_bin39.fits outfile=/scratch/kocevski/107461/ft1_filteredMKT_4FGL_J1150.6+4154_daily_bin39.fits ra=177.656 dec=41.9096 rad=12.0 tmin=249436801.0 tmax=249696001.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.46
user 1.26
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/107461/ft1_filtered_4FGL_J1150.6+4154_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/107461/ft2_4FGL_J1150.6+4154_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/107461/ltcube_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.fits outfile=/scratch/kocevski/107461/expmap_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.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/107461/ltcube_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.fits
.....................!
real 191.40
user 186.27
sys 4.64

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/107461/ft1_filtered_4FGL_J1150.6+4154_daily_bin39.fits scfile=/scratch/kocevski/107461/ft2_4FGL_J1150.6+4154_daily_bin39.fits outfile=/scratch/kocevski/107461/cmap_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.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.85
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/107461/ft1_filtered_4FGL_J1150.6+4154_daily_bin39.fits scfile=/scratch/kocevski/107461/ft2_4FGL_J1150.6+4154_daily_bin39.fits outfile=/scratch/kocevski/107461/cmap_HighResolution_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.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.81
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3129       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5766       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.0769       1.0000         .10000E-03   10000.    
     7 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25111E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11881E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .35153       1.0000         .10000E-03   10000.    
    14 'norm      '    .10490E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10601E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    31.257       1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3688       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .58792       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.4287       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=   4592.468     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2397 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3077        421.45        .26279E-06    .33119E-05
   2  norm          1.5766        .37163        .10764E-07   -.26882E-03
   3  Prefactor     .10000E-03    4.6618        .53502E-07** at limit **
   4  Prefactor     .10000E-03    4.7933        .28717E-07** at limit **
   5  Prefactor     .10000E-03    52.270       -.58841E-05** at limit **
   6  norm          9.0754        9.5727        .15917E-06   -.62669E-04
   7  norm          .10000E-03    109.33        .42357E-06** at limit **
   8  Prefactor     .10000E-03    1.6374        .50791E-06** at limit **
   9  Prefactor     .10000E-03    102.40        .30678E-05** at limit **
  10  norm          .10000E-03    1.5243       -.59746E-06** at limit **
  11  Prefactor     .50478E-01    105.59        .58231E-05   -.36754E-04
  12  Prefactor     .10000E-03    64.790        .76984E-06** at limit **
  13  norm          .35324        .87737       -.19547E-06   -.30223E-04
  14  norm          .10000E-03    9.9979       -.10333E-05** at limit **
  15  Prefactor     .10000E-03    8.1811       -.53178E-07** at limit **
  16  Prefactor     .10002E-03    3.3598        .13393E-05** at limit **
  17  Prefactor     31.267        31.715       -.58900E-06    .11959E-04
  18  Prefactor     17.993        22.373       -.11129E-05   -.36805E-03
  19  Prefactor     .10000E-03    20.236        .22307E-06** at limit **
  20  Prefactor     5.3687        8.6904        .42976E-07    .63393E-05
  21  norm          .10000E-03    3.1616        .13350E-06** at limit **
  22  Prefactor     .10000E-03    10.007        .63586E-06** at limit **
  23  Normalizat    .58785        .18095       -.23979E-05   -.29715E-03
  24  Prefactor     1.4286        .21949       -.66409E-06   -.33478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30768
  norm       = 1.57664
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.07538
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0504782
  Prefactor  = 0.0001
  norm       = 0.353237
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 31.2671
  Prefactor  = 17.9933
  Prefactor  = 0.0001
  Prefactor  = 5.36869
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.587845
  Prefactor  = 1.42861
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.468     FROM HESSE     STATUS=OK           401 CALLS     2798 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3077        422.35        .22241E-03   -1.5344    
   2  norm          1.5766        .37210        .19448E-04   -1.5457    
   3  Prefactor     .10000E-03    4.6679        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7953        .14490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    50.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.0754        9.5540        .13303E-03   -1.5105    
   7  norm          .10000E-03    109.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6264        .16578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    103.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5437        .16150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .50478E-01    7.0128        .38864E-01   -1.5663    
  12  Prefactor     .10000E-03    65.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .35324        .87681        .96414E-04   -1.5589    
  14  norm          .10000E-03    10.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.1866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    11.602        .21099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     31.267        31.650        .71667E-04   -1.4589    
  18  Prefactor     17.993        21.689        .94554E-04   -1.4859    
  19  Prefactor     .10000E-03    20.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3687        8.6772        .17344E-03   -1.5245    
  21  norm          .10000E-03    3.1788        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.024        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .58785        .21218        .27668E-03   -1.0850    
  24  Prefactor     1.4286        .26147        .23372E-03   -.79559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09132e-09
Minuit parameter uncertainties:
  1  75.3013
  2  0.372102
  3  3.17995e-06
  4  1.93873e-06
  5  0.000649643
  6  9.55563
  7  5.62927e-05
  8  1.09849e-05
  9  0.000338276
  10  1.79003e-05
  11  1.18891
  12  7.06399e-05
  13  0.876837
  14  8.18841e-05
  15  1.26791e-05
  16  0.000844737
  17  31.6669
  18  21.6984
  19  2.46153e-05
  20  8.67928
  21  3.28323e-06
  22  1.21777e-05
  23  0.21247
  24  0.261716
Done.

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

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  8.188e-05  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.429e+00  2.617e-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.878e-01  2.125e-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: 2.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/107461/likelihoodResults_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.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): 102
logL (Free Index) = 4592.46878276
delta logL = -0.000464480971459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4592.46831865
delta logL = -3.73925104213e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11067E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6491       1.0000          .0000       5.0000    
     3 'Normalizat'    .58791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4285       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4592.468     FROM MIGRAD    STATUS=FAILED       103 CALLS      259 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    165.89        .36285E-02** at limit **
   2  alpha         1.9640        3.7646        .50000        .79809E-06
   3  Normalizat    .58785        .15804E-01    .27668E-03    .33541E-03
   4  Prefactor     1.4286        .20061E-01    .23372E-03    .41901E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4592.468     FROM SIMPLEX   STATUS=UNCHANGED    171 CALLS      430 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    165.89        .52102E-03** at limit **
   2  alpha         1.9640        3.7646        .14595E-05    .79809E-06
   3  Normalizat    .58785        .15804E-01    .24906E-07    .33541E-03
   4  Prefactor     1.4286        .20061E-01    .57552E-08    .41901E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4592.468     FROM MIGRAD    STATUS=FAILED        69 CALLS      499 TOTAL
                     EDM=   .58E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6203.1        .14514E-03** at limit **
   2  alpha         1.9637        3.2262        .50000        .78479E-06
   3  Normalizat    .58785        .97982E-01    .22135E-05    .33077E-03
   4  Prefactor     1.4286        .12436        .93488E-05    .41346E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.96375
  Normalizat = 0.587846
  Prefactor  = 1.42861
 **********
 **   18 **HESSE 
 **********

 FCN=   4592.468     FROM HESSE     STATUS=OK            27 CALLS      526 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.419        .29028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9637        3.3684        .50000       -.21618    
   3  Normalizat    .58785        .20395        .44269E-06   -1.0850    
   4  Prefactor     1.4286        .25918        .18698E-05   -.79559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34176e-09
Minuit parameter uncertainties:
  1  2.47248e-05
  2  173.122
  3  0.204208
  4  0.259417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/107461': 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): 1
logL (Free Index) = 4592.46831721
delta logL = 1.06931383925e-06

Extracting fit parameters...

4FGL J1150.6+4154
   Spectrum: LogParabola
329         norm:  1.000e-04  2.472e-05  1.000e-04  1.000e+04 ( 1.000e-13)
330        alpha:  1.964e+00  1.731e+02  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.429e+00  2.594e-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.878e-01  2.042e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.656 41.910

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/107461/cmap_HighResolution_249436801_249696001_4FGL_J1150.6+4154_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.02e-05', job_status='DONE', photon_flux_upper_limit='2.83e-08', time_completed='2021-09-04 13:15:10.168055', job_id='107461', GAL2='1.43', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1630786510.17', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.62' WHERE bin_id='39' AND source_name='4FGL J1150.6+4154' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:15:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 107461: <4FGL_J1150.6+4154_daily_bin39> in cluster <slac> Done

Job <4FGL_J1150.6+4154_daily_bin39> 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) <bullet0055>, 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:15:10 2021
Results reported at Sat Sep  4 13:15:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.6+4154_daily_bin39 177.656 41.9096 249436801 249696001 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 :                                   618.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

