/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 2 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 = 7323
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1150.4+2418_daily_bin330
RA = 177.603, Dec = 24.3016
tmin = 324864001, tmax = 325123201
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='100847', job_status='RUN', time_executed='2021-09-04 12:41:49.262194', time_epoch_executed='1630784509.26' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='330'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100847/ft1_4FGL_J1150.4+2418_daily_bin330.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100847/ft1_4FGL_J1150.4+2418_daily_bin330.fits outfile=/scratch/kocevski/100847/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin330.fits ra=177.603 dec=24.3016 rad=12.0 tmin=324864001.0 tmax=325123201.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 5.78
user 5.50
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100847/ft1_filtered_4FGL_J1150.4+2418_daily_bin330.fits" evtable="EVENTS" scfile=/scratch/kocevski/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits sctable="SC_DATA" outfile=/scratch/kocevski/100847/ltcube_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.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/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits
.....................!
real 11.81
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J1150.4+2418_daily_bin330.fits evtable="EVENTS" scfile=/scratch/kocevski/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits sctable="SC_DATA" expcube=/scratch/kocevski/100847/ltcube_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.fits outfile=/scratch/kocevski/100847/expmap_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.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/100847/ltcube_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.fits
.....................!
real 192.56
user 186.80
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/100847/ft1_filtered_4FGL_J1150.4+2418_daily_bin330.fits scfile=/scratch/kocevski/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits outfile=/scratch/kocevski/100847/cmap_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.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.65
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100847/ft1_filtered_4FGL_J1150.4+2418_daily_bin330.fits scfile=/scratch/kocevski/100847/ft2_4FGL_J1150.4+2418_daily_bin330.fits outfile=/scratch/kocevski/100847/cmap_HighResolution_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7014       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2423       1.0000         .10000E-03   10000.    
     3 'norm      '    .10678E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.799       1.0000         .10000E-03   10000.    
     6 'Prefactor '    87.610       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.525       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9236       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.243       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.7289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17508E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .89890       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.6764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6194       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7189       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4857       1.0000         .10000E-03   10000.    
    23 'norm      '    .10188E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .64821       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1103       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=   4218.081     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3172 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7006        2.9909       -.16575E-06   -.96794E-04
   2  Prefactor     5.2420        5.2291       -.24803E-06    .43927E-04
   3  norm          .10000E-03    13.654        .18976E-07** at limit **
   4  Prefactor     .10000E-03    3.7069       -.70789E-07** at limit **
   5  Prefactor     25.771        30.082       -.10558E-04    .68710E-05
   6  Prefactor     87.589        58.111       -.16313E-04    .66642E-05
   7  Prefactor     22.522        21.932        .51816E-05    .19009E-04
   8  Prefactor     5.9203        7.1331       -.58169E-06   -.17388E-03
   9  Prefactor     18.243        23.927       -.11257E-05    .28572E-04
  10  Prefactor     8.7289        12.151        .15860E-05   -.22655E-04
  11  Prefactor     1.8118        1.9170       -.13653E-06   -.60529E-04
  12  Prefactor     .10000E-03    116.92        .42524E-05** at limit **
  13  norm          .89699        1.4745       -.36774E-06   -.10159E-02
  14  Prefactor     .10000E-03    2.3938       -.30099E-07** at limit **
  15  Prefactor     .10000E-03    66.535       -.48340E-06** at limit **
  16  Prefactor     .10000E-03    1.9497       -.10849E-06** at limit **
  17  Prefactor     .10000E-03    4.6424       -.19174E-06** at limit **
  18  norm          8.6769        4.0204       -.89247E-06    .36203E-04
  19  Prefactor     .10000E-03    1.2664        .71001E-07** at limit **
  20  Prefactor     2.6197        2.5511        .19567E-06   -.13918E-03
  21  Prefactor     5.7148        8.8860       -.33522E-05   -.15120E-03
  22  norm          1.4857        .44184       -.25914E-07    .39500E-03
  23  norm          .10000E-03    2.4447        .91157E-07** at limit **
  24  Prefactor     .10000E-03    4.6498       -.22079E-07** at limit **
  25  Normalizat    .64843        .22228        .58933E-05   -.36542E-04
  26  Prefactor     1.1101        .21726       -.61214E-06    .13512E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.70061
  Prefactor  = 5.242
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.771
  Prefactor  = 87.5892
  Prefactor  = 22.5222
  Prefactor  = 5.9203
  Prefactor  = 18.2431
  Prefactor  = 8.72894
  Prefactor  = 1.81178
  Prefactor  = 0.000100001
  norm       = 0.896994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.67692
  Prefactor  = 0.0001
  Prefactor  = 2.61969
  Prefactor  = 5.71477
  norm       = 1.4857
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.648426
  Prefactor  = 1.11013
 **********
 **   18 **HESSE 
 **********

 FCN=   4218.081     FROM HESSE     STATUS=OK           462 CALLS     3634 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7006        2.9836        .11399E-03   -1.5379    
   2  Prefactor     5.2420        5.2306        .14437E-03   -1.5250    
   3  norm          .10000E-03    13.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.7108        .12212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     25.771        30.052        .78868E-04   -1.4692    
   6  Prefactor     87.589        58.057        .42924E-04   -1.3833    
   7  Prefactor     22.522        21.926        .84396E-04   -1.4758    
   8  Prefactor     5.9203        7.1324        .16499E-03   -1.5221    
   9  Prefactor     18.243        23.820        .93773E-04   -1.4853    
  10  Prefactor     8.7289        12.135        .13567E-03   -1.5117    
  11  Prefactor     1.8118        1.9057        .87527E-04   -1.5439    
  12  Prefactor     .10000E-03    120.26        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .89699        1.3295        .93559E-03   -1.5519    
  14  Prefactor     .10000E-03    2.4105        .98067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    66.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9961        .17692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8359        .27269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.6769        4.0026        .83556E-04   -1.5119    
  19  Prefactor     .10000E-03    1.2806        .71183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6197        2.5365        .96328E-04   -1.5384    
  21  Prefactor     5.7148        8.9102        .16796E-03   -1.5230    
  22  norm          1.4857        .44353        .21642E-04   -1.5464    
  23  norm          .10000E-03    2.4516        .99078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.6583        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .64843        .25680        .29568E-03   -1.0597    
  26  Prefactor     1.1101        .25447        .24810E-03   -.89144    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42673e-10
Minuit parameter uncertainties:
  1  2.98372
  2  5.2311
  3  2.62157e-05
  4  8.69336e-07
  5  30.07
  6  58.0942
  7  21.9343
  8  7.13343
  9  23.8323
  10  12.1385
  11  1.90573
  12  0.000608671
  13  1.32951
  14  1.25162e-05
  15  0.000177629
  16  1.34221e-05
  17  4.95811e-05
  18  4.00272
  19  9.63877e-06
  20  2.53657
  21  8.91227
  22  0.443533
  23  1.29718e-05
  24  2.76134e-06
  25  0.257278
  26  0.254745
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.812e+00  1.906e+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.110e+00  2.547e-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:  6.484e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 177.603 24.302
Photon Index (Fixed Index): 2.23 +/- 0.00
Photon Flux (Fixed Index): 3.13e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.41e-05

TS (Fixed Index): 2.21
Ra Dec: 177.603 24.302
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100847/likelihoodResults_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.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) = 4217.96014234
delta logL = 0.121286833742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4217.95501922
delta logL = 0.12640994605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0562       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8159       1.0000          .0000       10.000    
     3 'Normalizat'    .66299       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1007       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=   4217.955     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0562        96.549        .72057E-02   -.64709E-03
   2  Index         1.8160        5.4397        .26969       -.12590E-04
   3  Normalizat    .66299        .18059        .66117E-01    .18288E-04
   4  Prefactor     1.1007        .11560        .56307E-01    .35033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0562
  Index      = 1.81603
  Normalizat = 0.662988
  Prefactor  = 1.10067
 **********
 **   18 **HESSE 
 **********

 FCN=   4217.955     FROM HESSE     STATUS=OK            31 CALLS      267 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0562        2.0999        .92372E-04   -1.5421    
   2  Index         1.8160        .74304        .91687E-02   -.69033    
   3  Normalizat    .66299        .23356        .29257E-03   -1.0537    
   4  Prefactor     1.1007        .25161        .24897E-03   -.89445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0123e-10
Minuit parameter uncertainties:
  1  2.09996
  2  0.747715
  3  0.23391
  4  0.25188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100847': 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) = 4217.95501921
delta logL = 0.126409958144

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  2.056e+00  2.100e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.816e+00  7.477e-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.101e+00  2.519e-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:  6.630e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.46
Ra Dec: 177.603 24.302
Photon Index (Free Index): 1.82 +/- 0.75
Photon Flux (Free Index): 1.98e-08 +/- 2.76e-08
Energy Flux (Free Index): 2.26e-05 +/- 3.67e-05

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/100847/cmap_HighResolution_324864001_325123201_4FGL_J1150.4+2418_daily_bin330.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='3.13e-08', energy_flux2='2.26e-05', photon_flux_error='3.29e-08', dlogl='1.26e-01', energy_flux='1.34e-05', photon_flux2='1.98e-08', job_status='DONE', time_completed='2021-09-04 12:52:33.275128', photon_index_error2='0.75', photon_index2='1.82', ts='2.21', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='3.67e-05', EG='0.65', time_epoch_completed='1630785153.28', return_code='0', job_id='100847', GAL2='1.10', EG2='0.66', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='2.76e-08', ts2='2.46', photon_index='2.23' WHERE bin_id='330' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 12:52:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 100847: <4FGL_J1150.4+2418_daily_bin330> in cluster <slac> Done

Job <4FGL_J1150.4+2418_daily_bin330> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 12:41:31 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:41:33 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:41:33 2021
Terminated at Sat Sep  4 12:52:33 2021
Results reported at Sat Sep  4 12:52:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin330 177.603 24.3016 324864001 325123201 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 :                                   637.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   660 sec.
    Turnaround time :                            662 sec.

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

