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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin82
RA = 177.603, Dec = 24.3016
tmin = 260582401, tmax = 260841601
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='99364', job_status='RUN', time_executed='2021-09-04 12:37:02.809492', time_epoch_executed='1630784222.81' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='82'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/99364

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/99364/ft1_4FGL_J1150.4+2418_daily_bin82.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/99364/ft1_4FGL_J1150.4+2418_daily_bin82.fits outfile=/scratch/kocevski/99364/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin82.fits ra=177.603 dec=24.3016 rad=12.0 tmin=260582401.0 tmax=260841601.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.59
user 1.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.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/99364/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin82.fits evtable="EVENTS" outfile="/scratch/kocevski/99364/ft1_filtered_4FGL_J1150.4+2418_daily_bin82.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/99364/ft1_filtered_4FGL_J1150.4+2418_daily_bin82.fits" evtable="EVENTS" scfile=/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits sctable="SC_DATA" outfile=/scratch/kocevski/99364/ltcube_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.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/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits
.....................!
real 12.96
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/99364/ft1_filtered_4FGL_J1150.4+2418_daily_bin82.fits evtable="EVENTS" scfile=/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits sctable="SC_DATA" expcube=/scratch/kocevski/99364/ltcube_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.fits outfile=/scratch/kocevski/99364/expmap_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.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/99364/ltcube_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.fits
.....................!
real 190.38
user 185.41
sys 4.56

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/99364/ft1_filtered_4FGL_J1150.4+2418_daily_bin82.fits scfile=/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits outfile=/scratch/kocevski/99364/cmap_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/99364/ft1_filtered_4FGL_J1150.4+2418_daily_bin82.fits scfile=/scratch/kocevski/99364/ft2_4FGL_J1150.4+2418_daily_bin82.fits outfile=/scratch/kocevski/99364/cmap_HighResolution_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .42291E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8814       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8920       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12174E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.6914       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95658       1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.294       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1591       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9130       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2910       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .64108E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.244       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .33326       1.0000         .10000E-03   10000.    
    23 'norm      '    5.3042       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0284       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87096       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=   8218.739     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3171 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    1.1183        .72541E-01** at limit **
   2  Prefactor     1.8815        2.7871        .75873E-02   -.14434E-03
   3  norm          6.8971        11.052        .38206E-02    .79183E-03
   4  Prefactor     .10000E-03    4.7327        .90712E-02** at limit **
   5  Prefactor     11.024        15.920        .30175E-02    .93856E-03
   6  Prefactor     8.5059        30.508        .34363E-02   -.19436E-03
   7  Prefactor     .10000E-03    16.420        .90712E-02** at limit **
   8  Prefactor     1.6928        3.4394        .80912E-02   -.24520E-02
   9  Prefactor     5.0479        16.392        .44761E-02    .12811E-03
  10  Prefactor     .10000E-03    4.8112        .90712E-02** at limit **
  11  Prefactor     .95669        1.4627        .25732E-01    .84299E-03
  12  Prefactor     22.297        24.548        .21208E-02   -.16867E-02
  13  norm          4.1595        1.2789        .49409E-02    .22940E-03
  14  Prefactor     .10000E-03    1.6984        .90712E-02** at limit **
  15  Prefactor     .10000E-03    11.193        .90712E-02** at limit **
  16  Prefactor     .10000E-03    .98885        .31636E-01** at limit **
  17  Prefactor     2.9132        2.1945        .59512E-02    .11680E-03
  18  norm          2.2928        1.8668        .67798E-02    .48287E-03
  19  Prefactor     .10005E-03    .79952        .44323E-01** at limit **
  20  Prefactor     10.245        2.4562        .31298E-02   -.31453E-03
  21  Prefactor     .10000E-03    3.1162        .52923E-01** at limit **
  22  norm          .33328        .17826        .59435E-02    .21310E-03
  23  norm          5.3040        3.7927        .43628E-02   -.19615E-02
  24  Prefactor     .10000E-03    2.5591        .90712E-02** at limit **
  25  Normalizat    1.0281        .16112        .42323E-01    .35104E-03
  26  Prefactor     .87131        .15806        .44634E-01    .32947E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100045
  Prefactor  = 1.88151
  norm       = 6.89708
  Prefactor  = 0.000100004
  Prefactor  = 11.0237
  Prefactor  = 8.50586
  Prefactor  = 0.000100001
  Prefactor  = 1.69276
  Prefactor  = 5.04793
  Prefactor  = 0.000100002
  Prefactor  = 0.956694
  Prefactor  = 22.2972
  norm       = 4.15954
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.91324
  norm       = 2.29277
  Prefactor  = 0.000100048
  Prefactor  = 10.2451
  Prefactor  = 0.000100002
  norm       = 0.333277
  norm       = 5.30397
  Prefactor  = 0.0001
  Normalizat = 1.02809
  Prefactor  = 0.871309
 **********
 **   18 **HESSE 
 **********

 FCN=   8218.739     FROM HESSE     STATUS=OK           476 CALLS     3647 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    3.9765        .31256E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.8815        2.7665        .17927E-03   -1.5434    
   3  norm          6.8971        11.089        .15282E-03   -1.5183    
   4  Prefactor     .10000E-03    4.7830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.024        15.832        .60350E-03   -1.5044    
   6  Prefactor     8.5059        30.529        .13745E-03   -1.5125    
   7  Prefactor     .10000E-03    16.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6928        3.4068        .22918E-03   -1.5448    
   9  Prefactor     5.0479        16.024        .17905E-03   -1.5259    
  10  Prefactor     .10000E-03    4.8402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .95669        1.2573        .12306E-02   -1.5512    
  12  Prefactor     22.297        24.677        .84832E-04   -1.4763    
  13  norm          4.1595        1.2775        .53491E-04   -1.5300    
  14  Prefactor     .10000E-03    1.7340        .11522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1266        .17177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9132        2.1627        .11011E-03   -1.5367    
  18  norm          2.2928        1.8057        .10441E-03   -1.5405    
  19  Prefactor     .10005E-03    7.2684        .15192E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.245        2.4482        .66183E-04   -1.5068    
  21  Prefactor     .10000E-03    6.8241        .29849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .33328        .17578        .26521E-04   -1.5593    
  23  norm          5.3040        3.6740        .13889E-03   -1.5247    
  24  Prefactor     .10000E-03    2.5631        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0281        .18903        .23762E-03   -.92095    
  26  Prefactor     .87131        .18336        .27451E-03   -.97151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80964e-08
Minuit parameter uncertainties:
  1  0.000849079
  2  2.76671
  3  11.0923
  4  0.000268988
  5  15.8381
  6  30.5853
  7  0.000314318
  8  3.40721
  9  16.0379
  10  0.000192114
  11  1.25732
  12  24.6878
  13  1.27752
  14  7.89568e-06
  15  0.000246281
  16  1.14614e-05
  17  2.16278
  18  1.80578
  19  0.00118253
  20  2.44818
  21  0.000232206
  22  0.175777
  23  3.6742
  24  1.20874e-05
  25  0.189149
  26  0.183493
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  9.567e-01  1.257e+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:  8.713e-01  1.835e-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.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/99364/likelihoodResults_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.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) = 8218.7139635
delta logL = 0.0246760069022

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8218.70414777
delta logL = 0.0344917307848

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1680       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0216       1.0000          .0000       10.000    
     3 'Normalizat'    1.0323       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86713       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=   8218.704     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      226 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1671        42.296        .10627E-01    .88726E-03
   2  Index         2.0209        5.9319        .25666        .37527E-04
   3  Normalizat    1.0323        .42143E-01    .41938E-01    .78387E-04
   4  Prefactor     .86725        .43055E-01    .44585E-01   -.17567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.16707
  Index      = 2.02089
  Normalizat = 1.03228
  Prefactor  = 0.867248
 **********
 **   18 **HESSE 
 **********

 FCN=   8218.704     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1671        1.5945        .11993E-03   -1.5492    
   2  Index         2.0209        .74199        .10901E-01   -.63829    
   3  Normalizat    1.0323        .16660        .23718E-03   -.91957    
   4  Prefactor     .86725        .17975        .27507E-03   -.97295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94641e-11
Minuit parameter uncertainties:
  1  1.59455
  2  0.746277
  3  0.16668
  4  0.179875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/99364': 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) = 8218.70414663
delta logL = 0.034492871866

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.167e+00  1.595e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  2.021e+00  7.463e-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:  8.672e-01  1.799e-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.032e+00  1.667e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.91
Ra Dec: 177.603 24.302

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/99364/cmap_HighResolution_260582401_260841601_4FGL_J1150.4+2418_daily_bin82.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-04 12:52:24.227172', job_id='99364', GAL2='0.87', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630785144.23', return_code2='0', ts='0.91', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='3.45e-02', ts2='0.97', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='82' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:52:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 99364: <4FGL_J1150.4+2418_daily_bin82> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin82 177.603 24.3016 260582401 260841601 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 :                                   917.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

