/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packa/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache us/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 119 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 = 17559
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1150.4+2418_weekly_bin719
RA = 177.603, Dec = 24.3016
tmin = 673833601, tmax = 674438401
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='865701', job_status='RUN', time_executed='2022-05-17 07:21:44.221500', time_epoch_executed='1652797304.22' WHERE source_name='4FGL J1150.4+2418' and cadence='weekly' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/865701

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/865701/ft1_4FGL_J1150.4+2418_weekly_bin719.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/865701/ft2_4FGL_J1150.4+2418_weekly_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/865701/ft1_4FGL_J1150.4+2418_weekly_bin719.fits outfile=/scratch/kocevski/865701/ft1_filteredMKT_4FGL_J1150.4+2418_weekly_bin719.fits ra=177.603 dec=24.3016 rad=12.0 tmin=673833601.0 tmax=674438401.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 9.38
user 8.98
sys 0.34

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

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

Number of photons that the gtmktime cut: 1205

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/865701/ft1_filtered_4FGL_J1150.4+2418_weekly_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/865701/ft2_4FGL_J1150.4+2418_weekly_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/865701/ltcube_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.fits outfile=/scratch/kocevski/865701/expmap_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.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/865701/ltcube_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.fits
.....................!
real 193.22
user 187.46
sys 5.17

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/865701/ft1_filtered_4FGL_J1150.4+2418_weekly_bin719.fits scfile=/scratch/kocevski/865701/ft2_4FGL_J1150.4+2418_weekly_bin719.fits outfile=/scratch/kocevski/865701/cmap_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.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.60
user 0.44
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/865701/ft1_filtered_4FGL_J1150.4+2418_weekly_bin719.fits scfile=/scratch/kocevski/865701/ft2_4FGL_J1150.4+2418_weekly_bin719.fits outfile=/scratch/kocevski/865701/cmap_HighResolution_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.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.61
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/865701/ft1_filtered_4FGL_J1150.4+2418_weekly_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/865701/ft2_4FGL_J1150.4+2418_weekly_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/865701/Model_4FGL_J1150.4+2418_weekly_bin719.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/865701/ft1_filtered_4FGL_J1150.4+2418_weekly_bin719.fits.....................!
real 110.76
user 107.79
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7966       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.2465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.019       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.0969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.9530       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.9726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.985       1.0000         .10000E-03   10000.    
    13 'norm      '    12.345       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5881       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0505       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6334       1.0000         .10000E-03   10000.    
    18 'norm      '    7.7850       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21807E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.135       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .16791E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .92457       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=   13695.35     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3144 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7964        2.3143        .19089E-06   -.10511E-03
   2  Prefactor     .10000E-03    2.7853        .32986E-06** at limit **
   3  norm          8.2449        9.2096        .11786E-06   -.37006E-04
   4  Prefactor     .10000E-03    2.3754       -.11618E-06** at limit **
   5  Prefactor     .10000E-03    12.460        .97654E-05** at limit **
   6  Prefactor     14.018        29.004       -.14077E-05   -.10348E-04
   7  Prefactor     5.0954        5.5820        .42465E-07   -.15757E-03
   8  Prefactor     1.9518        .72946        .48687E-07   -.16296E-02
   9  Prefactor     .10000E-03    9.6293       -.69618E-05** at limit **
  10  Prefactor     .10000E-03    7.1058        .55418E-05** at limit **
  11  Prefactor     3.9722        1.4436        .14563E-07    .29382E-03
  12  Prefactor     16.986        19.513        .33835E-06    .17511E-04
  13  norm          12.345        1.5677       -.27496E-08    .60689E-03
  14  Prefactor     3.5873        2.5185       -.53948E-06   -.15654E-03
  15  Prefactor     .10000E-03    21.976       -.37636E-05** at limit **
  16  Prefactor     3.0509        2.4291       -.84846E-06   -.26853E-03
  17  Prefactor     2.6329        2.2214        .93766E-06    .94440E-04
  18  norm          7.7830        2.5512       -.18512E-07    .51003E-03
  19  Prefactor     .10000E-03    .62099       -.18813E-07** at limit **
  20  Prefactor     .10000E-03    .69852        .42847E-07** at limit **
  21  Prefactor     .10000E-03    1.3392        .17379E-07** at limit **
  22  norm          .10000E-03    .82060E-01    .22632E-07** at limit **
  23  norm          13.135        3.7974        .33387E-07    .26447E-03
  24  Prefactor     .10003E-03    2.5019       -.13990E-05** at limit **
  25  Normalizat    1.0277        .13595        .24071E-06   -.20187E-04
  26  Prefactor     .92444        .13335       -.61380E-07   -.29470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.79639
  Prefactor  = 0.0001
  norm       = 8.24494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.0185
  Prefactor  = 5.09543
  Prefactor  = 1.95184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.97221
  Prefactor  = 16.9857
  norm       = 12.3448
  Prefactor  = 3.58733
  Prefactor  = 0.0001
  Prefactor  = 3.05089
  Prefactor  = 2.63288
  norm       = 7.78303
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.1346
  Prefactor  = 0.000100033
  Normalizat = 1.02774
  Prefactor  = 0.924441
 **********
 **   18 **HESSE 
 **********

 FCN=   13695.35     FROM HESSE     STATUS=OK           466 CALLS     3610 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7964        2.3133        .11844E-03   -1.5270    
   2  Prefactor     .10000E-03    2.8411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.2449        9.2200        .13961E-03   -1.5134    
   4  Prefactor     .10000E-03    2.3858        .17612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.018        29.024        .10698E-03   -1.4959    
   7  Prefactor     5.0954        5.5821        .17809E-03   -1.5256    
   8  Prefactor     1.9518        3.8622        .14846E-02   -1.5429    
   9  Prefactor     .10000E-03    9.7122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.3115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.9722        1.4437        .81083E-04   -1.5309    
  12  Prefactor     16.986        19.746        .97182E-04   -1.4883    
  13  norm          12.345        1.5689        .48974E-04   -1.5005    
  14  Prefactor     3.5873        2.5103        .14612E-03   -1.5329    
  15  Prefactor     .10000E-03    22.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0509        2.3980        .14021E-03   -1.5359    
  17  Prefactor     2.6329        2.2044        .14261E-03   -1.5383    
  18  norm          7.7830        2.4088        .96811E-04   -1.5150    
  19  Prefactor     .10000E-03    3.9314        .16856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .72360        .19047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    1.3486        .13216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .28109        .63260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.135        3.7886        .11052E-03   -1.4983    
  24  Prefactor     .10003E-03    8.4424        .34781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0277        .16017        .26468E-03   -.92107    
  26  Prefactor     .92444        .15672        .29240E-03   -.95292    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97375e-09
Minuit parameter uncertainties:
  1  2.31335
  2  2.22977e-06
  3  9.22162
  4  4.74513e-07
  5  8.85251e-05
  6  29.0527
  7  5.5827
  8  3.86265
  9  1.44355e-05
  10  3.18257e-05
  11  1.44373
  12  19.7537
  13  1.56893
  14  2.51038
  15  1.45707e-06
  16  2.39805
  17  2.20451
  18  2.40888
  19  0.000102886
  20  2.56642e-06
  21  1.30413e-07
  22  9.80266e-07
  23  3.78871
  24  0.00106339
  25  0.16025
  26  0.156796
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.972e+00  1.444e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.228e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
288        Scale:  1.108e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
610    Prefactor:  9.244e-01  1.568e-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.028e+00  1.602e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.93
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 6.87e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.07e-05

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) = 13695.1154413
delta logL = 0.23427890703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13695.1117408
delta logL = 0.237979384481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3327       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4914       1.0000          .0000       10.000    
     3 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94107       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=   13695.11     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      237 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3314        12.603        .55429E-02    .37373E-03
   2  Index         2.4917        2.1783        .15425        .22996E-03
   3  Normalizat    1.0029        .60517E-01    .46203E-01    .24317E-04
   4  Prefactor     .94103        .47696E-01    .65576E-01    .30084E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33135
  Index      = 2.49173
  Normalizat = 1.00289
  Prefactor  = 0.94103
 **********
 **   18 **HESSE 
 **********

 FCN=   13695.11     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3314        1.7060        .69204E-04   -1.5343    
   2  Index         2.4917        .41419        .52541E-02   -.52551    
   3  Normalizat    1.0029        .15376        .26746E-03   -.92934    
   4  Prefactor     .94103        .15847        .29004E-03   -.94722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33863e-11
Minuit parameter uncertainties:
  1  1.70598
  2  0.414823
  3  0.153831
  4  0.158544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/865701': 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) = 13695.1117403
delta logL = 0.237979934907

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  3.331e+00  1.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.492e+00  4.148e-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:  9.410e-01  1.585e-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.003e+00  1.538e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 21.34
Ra Dec: 177.603 24.302
Photon Index (Free Index): 2.49 +/- 0.41
Photon Flux (Free Index): 8.95e-08 +/- 4.27e-08
Energy Flux (Free Index): 2.62e-05 +/- 9.53e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/865701/cmap_HighResolution_673833601_674438401_4FGL_J1150.4+2418_weekly_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.87e-08', energy_flux2='2.62e-05', photon_flux_error='2.50e-08', dlogl='2.38e-01', energy_flux='2.93e-05', photon_flux2='8.95e-08', job_status='DONE', time_completed='2022-05-17 07:41:57.606697', photon_index_error2='0.41', photon_index2='2.49', ts='20.93', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='9.53e-06', EG='1.03', time_epoch_completed='1652798517.61', return_code='0', job_id='865701', GAL2='0.94', EG2='1.00', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='4.27e-08', ts2='21.34', photon_index='2.23' WHERE bin_id='719' AND source_name='4FGL J1150.4+2418' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May 17 07:41:57 PDT 2022



Database successfully updated.


Analysis Complete.


Tue May 17 01:19:13 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 865694: <4FGL_J1150.4+2418_weekly_bin719> in cluster <slac> Done

Job <4FGL_J1150.4+2418_weekly_bin719> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 17 00:06:39 2022
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 17 00:50:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 17 00:50:39 2022
Terminated at Tue May 17 01:19:14 2022
Results reported at Tue May 17 01:19:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_weekly_bin719 177.603 24.3016 673833601 674438401 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 :                                   1183.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             239.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1714 sec.
    Turnaround time :                            4355 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0141>
Subject: Job 865701: <4FGL_J1150.4+2418_weekly_bin719> in cluster <slac> Done

Job <4FGL_J1150.4+2418_weekly_bin719> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue May 17 00:06:39 2022
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 17 00:50:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 17 00:50:41 2022
Terminated at Tue May 17 07:41:58 2022
Results reported at Tue May 17 07:41:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_weekly_bin719 177.603 24.3016 673833601 674438401 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 :                                   1221.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             63.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   24676 sec.
    Turnaround time :                            27319 sec.

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

