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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin36
RA = 177.603, Dec = 24.3016
tmin = 248659201, tmax = 248918401
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='99290', job_status='RUN', time_executed='2021-09-04 12:39:18.668291', time_epoch_executed='1630784358.67' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99290/ft1_4FGL_J1150.4+2418_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99290/ft2_4FGL_J1150.4+2418_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99290/ft1_4FGL_J1150.4+2418_daily_bin36.fits outfile=/scratch/kocevski/99290/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin36.fits ra=177.603 dec=24.3016 rad=12.0 tmin=248659201.0 tmax=248918401.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.40
user 1.23
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99290/ft2_4FGL_J1150.4+2418_daily_bin36.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/99290/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/99290/ft1_filtered_4FGL_J1150.4+2418_daily_bin36.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99290/ft1_filtered_4FGL_J1150.4+2418_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/99290/ft2_4FGL_J1150.4+2418_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/99290/ltcube_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.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/99290/ft2_4FGL_J1150.4+2418_daily_bin36.fits
.....................!
real 12.53
user 12.18
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99290/ft1_filtered_4FGL_J1150.4+2418_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/99290/ft2_4FGL_J1150.4+2418_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/99290/ltcube_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.fits outfile=/scratch/kocevski/99290/expmap_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.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/99290/ltcube_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.fits
.....................!
real 189.86
user 185.27
sys 4.21

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/99290/ft1_filtered_4FGL_J1150.4+2418_daily_bin36.fits scfile=/scratch/kocevski/99290/ft2_4FGL_J1150.4+2418_daily_bin36.fits outfile=/scratch/kocevski/99290/cmap_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6131       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.3438       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3816       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5120       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2964       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .28960E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.555       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46403E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.1901       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4324       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1244       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.4039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .86943E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    3.8648       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.954       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0783       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0328       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=   6136.237     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     3123 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6130        1.6431       -.74699E-07    .15998E-04
   2  Prefactor     5.3435        4.5856       -.91119E-07   -.83118E-05
   3  norm          1.3821        6.8825        .17439E-05    .48255E-04
   4  Prefactor     1.5126        6.3523        .18147E-05    .97025E-06
   5  Prefactor     .10000E-03    13.924       -.61509E-06** at limit **
   6  Prefactor     6.2690        31.969        .13989E-05    .14871E-04
   7  Prefactor     .10000E-03    9.8235       -.49579E-06** at limit **
   8  Prefactor     .10001E-03    2.9301       -.10269E-05** at limit **
   9  Prefactor     17.561        17.375        .17820E-05   -.19347E-04
  10  Prefactor     .10000E-03    2.6912       -.25590E-07** at limit **
  11  Prefactor     .10000E-03    .84218       -.26832E-06** at limit **
  12  Prefactor     5.1851        31.307        .57481E-07    .52926E-04
  13  norm          .10000E-03    .51408       -.50037E-06** at limit **
  14  Prefactor     .10000E-03    .96184       -.54928E-07** at limit **
  15  Prefactor     42.357        38.622        .48265E-06    .51925E-04
  16  Prefactor     1.4319        3.1675        .53211E-07   -.41049E-04
  17  Prefactor     1.1248        3.4493       -.10663E-06   -.88306E-04
  18  norm          2.0802        3.1965        .24782E-07    .59145E-04
  19  Prefactor     3.5756        2.8763       -.22642E-07    .55375E-04
  20  Prefactor     6.4038        2.8446        .38021E-07    .17660E-03
  21  Prefactor     .10000E-03    1.5767       -.29978E-07** at limit **
  22  norm          .86955E-01    .17884       -.99732E-07   -.34717E-03
  23  norm          3.8647        3.7150       -.69491E-08    .18517E-04
  24  Prefactor     10.954        10.521       -.88635E-07    .12587E-04
  25  Normalizat    1.0784        .18067        .89516E-06    .20945E-03
  26  Prefactor     1.0328        .18995        .93035E-06    .14832E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61298
  Prefactor  = 5.34354
  norm       = 1.38209
  Prefactor  = 1.51257
  Prefactor  = 0.0001
  Prefactor  = 6.26903
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 17.5611
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.18506
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.3573
  Prefactor  = 1.43189
  Prefactor  = 1.1248
  norm       = 2.08019
  Prefactor  = 3.57559
  Prefactor  = 6.4038
  Prefactor  = 0.0001
  norm       = 0.0869552
  norm       = 3.86468
  Prefactor  = 10.9542
  Normalizat = 1.07842
  Prefactor  = 1.03279
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.237     FROM HESSE     STATUS=OK           472 CALLS     3595 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6130        1.6537        .98447E-04   -1.5454    
   2  Prefactor     5.3435        4.5817        .15090E-03   -1.5246    
   3  norm          1.3821        6.9076        .18512E-02   -1.5473    
   4  Prefactor     1.5126        6.3453        .17390E-02   -1.5462    
   5  Prefactor     .10000E-03    14.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2690        31.898        .15997E-03   -1.5207    
   7  Prefactor     .10000E-03    9.9557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    21.856        .24383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.561        17.237        .95592E-04   -1.4870    
  10  Prefactor     .10000E-03    2.6966        .12551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    13.300        .13551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.1851        30.673        .17646E-03   -1.5253    
  13  norm          .10000E-03    .80110        .10630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .96557        .75018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.357        38.503        .61595E-04   -1.4405    
  16  Prefactor     1.4319        2.9221        .16355E-03   -1.5469    
  17  Prefactor     1.1248        3.1917        .20198E-03   -1.5496    
  18  norm          2.0802        3.1678        .14885E-03   -1.5420    
  19  Prefactor     3.5756        2.8719        .10284E-03   -1.5330    
  20  Prefactor     6.4038        2.8370        .81980E-04   -1.5202    
  21  Prefactor     .10000E-03    1.5788        .96037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .86955E-01    .17590        .45101E-04   -1.5649    
  23  norm          3.8647        3.7039        .14272E-03   -1.5315    
  24  Prefactor     10.954        10.513        .12105E-03   -1.5046    
  25  Normalizat    1.0784        .21065        .23873E-03   -.90448    
  26  Prefactor     1.0328        .22284        .27004E-03   -.91644    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02918e-09
Minuit parameter uncertainties:
  1  1.65371
  2  4.58205
  3  6.18053
  4  6.19694
  5  8.58184e-10
  6  28.3059
  7  4.77035e-06
  8  0.00107889
  9  17.2415
  10  5.19867e-06
  11  0.000343008
  12  25.2417
  13  2.17953e-05
  14  1.9957e-06
  15  38.5259
  16  2.92239
  17  3.19213
  18  3.16802
  19  2.87203
  20  2.83703
  21  5.43097e-07
  22  0.175904
  23  3.70416
  24  10.5147
  25  0.210818
  26  0.223035
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.430e-04  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.033e+00  2.230e-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:  1.078e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 6.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/99290/likelihoodResults_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.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) = 6136.23714819
delta logL = -0.00037007264109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6136.2367771
delta logL = 1.02308604255e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11152E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3373       1.0000          .0000       10.000    
     3 'Normalizat'    1.0784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0328       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=   6136.237     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      247 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .47537E-01    .45596E-01** at limit **
   2  Index         2.3827        5.0329        .50000        .34628E-04
   3  Normalizat    1.0784        .12029E-02    .38957E-01    .18771E-03
   4  Prefactor     1.0328        .13412E-02    .61061E-01    .12335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38271
  Normalizat = 1.07842
  Prefactor  = 1.03279
 **********
 **   18 **HESSE 
 **********

 FCN=   6136.237     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      286 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .19282        .22137E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3827        6.2500        .50000       -.55090    
   3  Normalizat    1.0784        .15248E-02    .23873E-03   -.90448    
   4  Prefactor     1.0328        .16989E-02    .27004E-03   -.91645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.91844e-09
Minuit parameter uncertainties:
  1  4.02484e-06
  2  10.937
  3  0.00152485
  4  0.00169892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99290': 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) = 6136.23677667
delta logL = 1.45328067447e-06

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  4.025e-06  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.383e+00  1.094e+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.033e+00  1.699e-03  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:  1.078e+00  1.525e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 177.603 24.302

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/99290/cmap_HighResolution_248659201_248918401_4FGL_J1150.4+2418_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.97e-08', time_completed='2021-09-04 12:51:55.035026', job_id='99290', GAL2='1.03', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630785115.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.45e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='36' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 99290: <4FGL_J1150.4+2418_daily_bin36> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin36> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 12:36:46 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:36:48 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:36:48 2021
Terminated at Sat Sep  4 12:51:55 2021
Results reported at Sat Sep  4 12:51:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin36 177.603 24.3016 248659201 248918401 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 :                                   755.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

