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


Performing analysis on: 4FGL_J1150.4+2418_daily_bin996
RA = 177.603, Dec = 24.3016
tmin = 497491201, tmax = 497750401
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='105375', job_status='RUN', time_executed='2021-09-04 12:56:29.897507', time_epoch_executed='1630785389.9' WHERE source_name='4FGL J1150.4+2418' and cadence='daily' and bin_id='996'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/105375

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/105375/ft1_4FGL_J1150.4+2418_daily_bin996.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/105375/ft1_4FGL_J1150.4+2418_daily_bin996.fits outfile=/scratch/kocevski/105375/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin996.fits ra=177.603 dec=24.3016 rad=12.0 tmin=497491201.0 tmax=497750401.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 4.02
user 3.75
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.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/105375/ft1_filteredMKT_4FGL_J1150.4+2418_daily_bin996.fits evtable="EVENTS" outfile="/scratch/kocevski/105375/ft1_filtered_4FGL_J1150.4+2418_daily_bin996.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.83
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/105375/ft1_filtered_4FGL_J1150.4+2418_daily_bin996.fits" evtable="EVENTS" scfile=/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits sctable="SC_DATA" outfile=/scratch/kocevski/105375/ltcube_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.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/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits
.....................!
real 12.54
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/105375/ft1_filtered_4FGL_J1150.4+2418_daily_bin996.fits evtable="EVENTS" scfile=/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits sctable="SC_DATA" expcube=/scratch/kocevski/105375/ltcube_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.fits outfile=/scratch/kocevski/105375/expmap_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.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/105375/ltcube_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.fits
.....................!
real 190.54
user 186.03
sys 3.95

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/105375/ft1_filtered_4FGL_J1150.4+2418_daily_bin996.fits scfile=/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits outfile=/scratch/kocevski/105375/cmap_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/105375/ft1_filtered_4FGL_J1150.4+2418_daily_bin996.fits scfile=/scratch/kocevski/105375/ft2_4FGL_J1150.4+2418_daily_bin996.fits outfile=/scratch/kocevski/105375/cmap_HighResolution_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2160       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .60817E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .35824E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.350       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .57766       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7009       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1323       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2021       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85895       1.0000         .10000E-03   10000.    
    22 'norm      '    1.4682       1.0000         .10000E-03   10000.    
    23 'norm      '    13.274       1.0000         .10000E-03   10000.    
    24 'Prefactor '    27.615       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65230       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2046       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=   4587.869     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3204 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2151        3.8803        .44002E-02   -.13948E-02
   2  Prefactor     .10000E-03    6.8926        .55980E-01** at limit **
   3  norm          .10002E-03    7.8692        .64706E-01** at limit **
   4  Prefactor     10.343        12.416        .31137E-02    .46612E-03
   5  Prefactor     .10000E-03    28.345        .90712E-02** at limit **
   6  Prefactor     73.245        46.745        .11728E-02    .53263E-03
   7  Prefactor     .10000E-03    6.1180        .90712E-02** at limit **
   8  Prefactor     .56421        3.7702        .72669E-01   -.42143E-03
   9  Prefactor     3.1102        20.473        .57443E-02    .64236E-03
  10  Prefactor     .10000E-03    4.5093        .90712E-02** at limit **
  11  Prefactor     .10000E-03    .59662        .90712E-02** at limit **
  12  Prefactor     .10000E-03    13.712        .90712E-02** at limit **
  13  norm          .10000E-03    .60245        .27991E-01** at limit **
  14  Prefactor     6.7010        4.0964        .38753E-02    .73748E-03
  15  Prefactor     .10000E-03    16.465        .90712E-02** at limit **
  16  Prefactor     .10000E-03    1.2777        .90712E-02** at limit **
  17  Prefactor     .10000E-03    2.2343        .90712E-02** at limit **
  18  norm          9.1326        5.1115        .33156E-02    .14173E-02
  19  Prefactor     9.2023        4.3938        .33030E-02    .14966E-02
  20  Prefactor     2.6133        2.3543        .63076E-02   -.13244E-03
  21  Prefactor     .86069        8.8642        .53909E-01    .41386E-03
  22  norm          1.4682        .36997        .43890E-02    .38745E-03
  23  norm          13.273        7.3537        .27486E-02   -.23802E-03
  24  Prefactor     27.616        15.397        .19059E-02    .28491E-03
  25  Normalizat    .65247        .20681        .64903E-01    .20576E-04
  26  Prefactor     1.2042        .21292        .55823E-01    .35227E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21514
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 10.3428
  Prefactor  = 0.0001
  Prefactor  = 73.2453
  Prefactor  = 0.0001
  Prefactor  = 0.564213
  Prefactor  = 3.11017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 6.70103
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.13262
  Prefactor  = 9.20233
  Prefactor  = 2.61335
  Prefactor  = 0.860686
  norm       = 1.46815
  norm       = 13.2726
  Prefactor  = 27.6159
  Normalizat = 0.652469
  Prefactor  = 1.20422
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.869     FROM HESSE     STATUS=OK           464 CALLS     3668 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2151        3.8842        .10918E-03   -1.5251    
   2  Prefactor     .10000E-03    21.279        .33880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10002E-03    41.850        .36599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.343        12.275        .12455E-03   -1.5065    
   5  Prefactor     .10000E-03    28.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.245        46.781        .46911E-04   -1.3994    
   7  Prefactor     .10000E-03    6.1338        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .56421        15.511        .24603E-02   -1.5558    
   9  Prefactor     3.1102        20.497        .22977E-03   -1.5355    
  10  Prefactor     .10000E-03    4.5239        .14045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    .60128        .51009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1023        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.7010        4.0957        .10248E-03   -1.5190    
  15  Prefactor     .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.2959        .74700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3107        .19749E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1326        5.1371        .97234E-04   -1.5103    
  19  Prefactor     9.2023        4.4197        .83740E-04   -1.5101    
  20  Prefactor     2.6133        2.3461        .92007E-04   -1.5385    
  21  Prefactor     .86069        17.253        .34026E-02   -1.5522    
  22  norm          1.4682        .36857        .19415E-04   -1.5466    
  23  norm          13.273        7.1833        .10994E-03   -1.4979    
  24  Prefactor     27.616        15.385        .76236E-04   -1.4656    
  25  Normalizat    .65247        .24198        .28718E-03   -1.0580    
  26  Prefactor     1.2042        .25185        .24682E-03   -.86202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57004e-08
Minuit parameter uncertainties:
  1  3.88435
  2  4.63789e-05
  3  0.00175804
  4  12.2776
  5  3.27515e-05
  6  46.8042
  7  1.11734e-05
  8  5.91779
  9  15.9764
  10  2.51451e-06
  11  3.65232e-07
  12  0.00049182
  13  5.79182e-07
  14  4.09587
  15  0.000530533
  16  6.77354e-07
  17  1.28356e-07
  18  5.13734
  19  4.41984
  20  2.34622
  21  7.70898
  22  0.368575
  23  7.18379
  24  15.3874
  25  0.242379
  26  0.252105
Done.

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

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  3.652e-07  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.204e+00  2.521e-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.525e-01  2.424e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/105375/likelihoodResults_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.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): 102
logL (Free Index) = 4587.8691728
delta logL = -8.27473522804e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4587.86909018
delta logL = -1.22302481032e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1999       1.0000          .0000       10.000    
     3 'Normalizat'    .65254       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2043       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=   4587.869     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      222 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2430        .90712E-02** at limit **
   2  Index         1.8070        8.6404        .50000       -.27635E-06
   3  Normalizat    .65247        .86242E-02    .64903E-01    .52032E-03
   4  Prefactor     1.2042        .98438E-02    .55823E-01    .52775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.80698
  Normalizat = 0.652471
  Prefactor  = 1.20422
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.869     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      251 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.810        .54797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8070        5.7545        .50000       -.69268    
   3  Normalizat    .65247        .46325E-01    .28718E-03   -1.0580    
   4  Prefactor     1.2042        .52935E-01    .24682E-03   -.86202    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.64272e-08
Minuit parameter uncertainties:
  1  0.000265075
  2  419.087
  3  0.0463282
  4  0.0529371
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/105375': 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) = 4587.86907952
delta logL = 1.05294384412e-05

Extracting fit parameters...

4FGL J1150.4+2418
   Spectrum: PowerLaw
286    Prefactor:  1.000e-04  2.651e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        Index:  1.807e+00  4.191e+02  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.204e+00  5.294e-02  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.525e-01  4.633e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/105375/cmap_HighResolution_497491201_497750401_4FGL_J1150.4+2418_daily_bin996.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.94e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-04 13:07:41.820814', job_id='105375', GAL2='1.20', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630786061.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.05e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='996' AND source_name='4FGL J1150.4+2418' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:07:41 PDT 2021


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

Job <4FGL_J1150.4+2418_daily_bin996> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 12:56:11 2021
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 12:56: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:56:13 2021
Terminated at Sat Sep  4 13:07:42 2021
Results reported at Sat Sep  4 13:07:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1150.4+2418_daily_bin996 177.603 24.3016 497491201 497750401 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 :                                   670.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            691 sec.

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

