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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin719
RA = 177.603, Dec = 24.3016
tmin = 425692801, tmax = 425952001
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='103761', job_status='RUN', time_executed='2021-09-04 12:51:22.336537', time_epoch_executed='1630785082.34' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='719'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103761/ft1_4FGL_J1150.4+2418_daily_bin719.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103761/ft1_4FGL_J1150.4+2418_daily_bin719.fits outfile=/scratch/kocevski/103761/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin719.fits ra=177.603 dec=24.3016 rad=12.0 tmin=425692801.0 tmax=425952001.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 3.59
user 3.33
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits" evtable="EVENTS" scfile=/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits sctable="SC_DATA" outfile=/scratch/kocevski/103761/ltcube_425692801_425952001_4FGL_J1150.4+2418_daily_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/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits
.....................!
real 13.53
user 13.01
sys 0.41

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits sctable="SC_DATA" expcube=/scratch/kocevski/103761/ltcube_425692801_425952001_4FGL_J1150.4+2418_daily_bin719.fits outfile=/scratch/kocevski/103761/expmap_425692801_425952001_4FGL_J1150.4+2418_daily_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/103761/ltcube_425692801_425952001_4FGL_J1150.4+2418_daily_bin719.fits
.....................!
real 192.09
user 185.93
sys 5.35

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/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits scfile=/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits outfile=/scratch/kocevski/103761/cmap_425692801_425952001_4FGL_J1150.4+2418_daily_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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits scfile=/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits outfile=/scratch/kocevski/103761/cmap_HighResolution_425692801_425952001_4FGL_J1150.4+2418_daily_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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits evtable="EVENTS" scfile=/scratch/kocevski/103761/ft2_4FGL_J1150.4+2418_daily_bin719.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103761/Model_4FGL_J1150.4+2418_daily_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/103761/ft1_filtered_4FGL_J1150.4+2418_daily_bin719.fits.....................!
real 56.57
user 54.59
sys 1.77

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .58731       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4371       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .44093E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.352       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22912E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.052       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22207       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8011       1.0000         .10000E-03   10000.    
    13 'norm      '    6.8413       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.912       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .61362E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.5662       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6127       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6984       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0752       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .48118       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3606       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=   6119.645     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3142 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .82408        .10595E-06** at limit **
   2  Prefactor     .59194        6.6542        .79017E-06    .48462E-04
   3  norm          4.4441        7.9897       -.12612E-05   -.17078E-03
   4  Prefactor     .10000E-03    8.5095        .78707E-07** at limit **
   5  Prefactor     .10001E-03    26.626        .60575E-05** at limit **
   6  Prefactor     41.552        38.738        .10881E-05   -.67142E-04
   7  Prefactor     16.359        12.470       -.20698E-06   -.20328E-03
   8  Prefactor     .10000E-03    5.1965        .85950E-06** at limit **
   9  Prefactor     18.067        21.506       -.29476E-07   -.85232E-04
  10  Prefactor     .10000E-03    6.1553        .18279E-06** at limit **
  11  Prefactor     .22255        1.9063       -.20171E-06    .29605E-05
  12  Prefactor     8.8319        30.451        .25641E-05    .29677E-04
  13  norm          6.8420        1.7628       -.19092E-07   -.12275E-03
  14  Prefactor     .10000E-03    2.8595        .30255E-06** at limit **
  15  Prefactor     15.892        33.827       -.16263E-05    .71494E-05
  16  Prefactor     .60509E-01    1.1984        .94617E-07   -.40045E-04
  17  Prefactor     .10000E-03    .85040        .69053E-07** at limit **
  18  norm          9.5686        3.9422        .54282E-07   -.64034E-04
  19  Prefactor     .10000E-03    1.9523       -.18075E-07** at limit **
  20  Prefactor     3.6128        2.5184        .22858E-07   -.25008E-04
  21  Prefactor     .10000E-03    2.6445        .78105E-07** at limit **
  22  norm          2.6984        .43134       -.38480E-08   -.96449E-03
  23  norm          4.0749        3.7681        .61676E-07   -.91962E-05
  24  Prefactor     .10000E-03    13.334        .39923E-06** at limit **
  25  Normalizat    .48100        .20656        .95512E-06   -.14549E-03
  26  Prefactor     1.3610        .20958       -.14060E-05   -.20689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.591942
  norm       = 4.44412
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 41.5525
  Prefactor  = 16.3594
  Prefactor  = 0.000100004
  Prefactor  = 18.0675
  Prefactor  = 0.0001
  Prefactor  = 0.222551
  Prefactor  = 8.8319
  norm       = 6.84195
  Prefactor  = 0.0001
  Prefactor  = 15.8917
  Prefactor  = 0.0605089
  Prefactor  = 0.0001
  norm       = 9.56856
  Prefactor  = 0.0001
  Prefactor  = 3.61282
  Prefactor  = 0.0001
  norm       = 2.69843
  norm       = 4.07489
  Prefactor  = 0.0001
  Normalizat = 0.481
  Prefactor  = 1.36098
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.645     FROM HESSE     STATUS=OK           468 CALLS     3610 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .83084        .69400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .59194        18.972        .37421E-02   -1.5554    
   3  norm          4.4441        8.1339        .95586E-03   -1.5286    
   4  Prefactor     .10000E-03    8.5748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    32.114        .40818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.552        38.586        .31106E-03   -1.4418    
   7  Prefactor     16.359        12.125        .99045E-04   -1.4899    
   8  Prefactor     .10000E-03    7.8359        .28576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.067        21.306        .94267E-04   -1.4858    
  10  Prefactor     .10000E-03    6.1968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22255        1.9352        .19921E-02   -1.5614    
  12  Prefactor     8.8319        30.237        .13511E-03   -1.5114    
  13  norm          6.8420        1.7605        .49216E-04   -1.5185    
  14  Prefactor     .10000E-03    2.9707        .25848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.892        33.609        .10041E-03   -1.4910    
  16  Prefactor     .60509E-01    12.573        .16369E-02   -1.5659    
  17  Prefactor     .10000E-03    .85786        .70449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.5686        3.9158        .92630E-04   -1.5089    
  19  Prefactor     .10000E-03    1.9833        .21198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6128        2.5093        .96622E-04   -1.5328    
  21  Prefactor     .10000E-03    2.6588        .12421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6984        .43083        .19483E-04   -1.5379    
  23  norm          4.0749        3.7683        .14109E-03   -1.5304    
  24  Prefactor     .10000E-03    13.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .48100        .22869        .35058E-03   -1.1330    
  26  Prefactor     1.3610        .24081        .24375E-03   -.81512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39892e-08
Minuit parameter uncertainties:
  1  3.209e-06
  2  6.70412
  3  8.1359
  4  3.80717e-05
  5  0.00100217
  6  38.6088
  7  12.1271
  8  0.000334443
  9  21.3153
  10  1.99159e-05
  11  1.3123
  12  30.2891
  13  1.76053
  14  1.61728e-05
  15  33.649
  16  1.74341
  17  2.16519e-06
  18  3.91593
  19  4.16632e-07
  20  2.50937
  21  4.54312e-06
  22  0.430835
  23  3.76847
  24  5.12165e-05
  25  0.229133
  26  0.241012
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.226e-01  1.312e+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:  1.361e+00  2.410e-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:  4.810e-01  2.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/103761/likelihoodResults_425692801_425952001_4FGL_J1150.4+2418_daily_bin719.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) = 6119.59077261
delta logL = 0.0542932242861

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6119.58876948
delta logL = 0.0562963547336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18137       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0721       1.0000          .0000       10.000    
     3 'Normalizat'    .46975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3673       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=   6119.589     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18108        8.8372        .98923E-02    .25160E-02
   2  Index         3.0725        3.6352        .21947        .46021E-04
   3  Normalizat    .46975        .22836E-01    .80052E-01    .30799E-04
   4  Prefactor     1.3673        .25663E-01    .55020E-01   -.62347E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.181085
  Index      = 3.07248
  Normalizat = 0.469754
  Prefactor  = 1.36728
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.589     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      250 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18108        68.085        .89035E-04   -1.5623    
   2  Index         3.0725        7.9327        .13587E-01   -.39575    
   3  Normalizat    .46975        .30222        .35458E-03   -1.1384    
   4  Prefactor     1.3673        .31729        .24325E-03   -.81328    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.98587e-07
Minuit parameter uncertainties:
  1  7.02869
  2  22.978
  3  0.303278
  4  0.317745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103761': 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) = 6119.58876941
delta logL = 0.0562964253877

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.811e-01  7.029e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  3.072e+00  2.298e+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.367e+00  3.177e-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:  4.698e-01  3.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/103761/cmap_HighResolution_425692801_425952001_4FGL_J1150.4+2418_daily_bin719.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.44e-03', job_status='DONE', photon_flux_upper_limit='7.12e-08', time_completed='2021-09-04 13:04:20.187447', job_id='103761', GAL2='1.37', fit_tolerance='1e-08', EG2='0.47', EG='0.48', time_epoch_completed='1630785860.19', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='5.63e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='719' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:04:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 103761: <4FGL_J1150.4+2418_daily_bin719> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin719> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 12:51:12 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:51:13 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:51:13 2021
Terminated at Sat Sep  4 13:04:22 2021
Results reported at Sat Sep  4 13:04:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin719 177.603 24.3016 425692801 425952001 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 :                                   774.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             293.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   787 sec.
    Turnaround time :                            790 sec.

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

