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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin270
RA = 178.514, Dec = 40.632
tmin = 309312001, tmax = 309571201
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='158888', job_status='RUN', time_executed='2021-09-04 15:31:35.932307', time_epoch_executed='1630794695.93' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='270'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158888/ft1_4FGL_J1154.0+4037_daily_bin270.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158888/ft1_4FGL_J1154.0+4037_daily_bin270.fits outfile=/scratch/kocevski/158888/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin270.fits ra=178.514 dec=40.632 rad=12.0 tmin=309312001.0 tmax=309571201.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.01
user 3.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.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/158888/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin270.fits evtable="EVENTS" outfile="/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits" evtable="EVENTS" scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits sctable="SC_DATA" outfile=/scratch/kocevski/158888/ltcube_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.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/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits
.....................!
real 11.87
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits sctable="SC_DATA" expcube=/scratch/kocevski/158888/ltcube_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits outfile=/scratch/kocevski/158888/expmap_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.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/158888/ltcube_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits
.....................!
real 190.59
user 184.75
sys 5.39

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 213 point sources and 0 extended sources

Setting source of interest to:
4FGL J1154.0+4037 @ 178.514 40.632

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits outfile=/scratch/kocevski/158888/cmap_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.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=178.514 yref=40.632 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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits outfile=/scratch/kocevski/158888/cmap_HighResolution_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.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=178.514 yref=40.632 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits evtable="EVENTS" scfile=/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/158888/Model_4FGL_J1154.0+4037_daily_bin270.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/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits.....................!
real 49.83
user 47.78
sys 1.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits', '/scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits', expMap='/scratch/kocevski/158888/expmap_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits', expCube='/scratch/kocevski/158888/ltcube_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/158888/Model_4FGL_J1154.0+4037_daily_bin270.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1154.0+4037'

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  8.147e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/158888/ft1_filtered_4FGL_J1154.0+4037_daily_bin270.fits
Spacecraft file(s): /scratch/kocevski/158888/ft2_4FGL_J1154.0+4037_daily_bin270.fits
Exposure map: /scratch/kocevski/158888/expmap_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits
Exposure cube: /scratch/kocevski/158888/ltcube_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/158888/Model_4FGL_J1154.0+4037_daily_bin270.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) = 5858.49898131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5087       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2993       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.45       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.687       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54596E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4567       1.0000         .10000E-03   10000.    
    15 'norm      '    2.3638       1.0000         .10000E-03   10000.    
    16 'norm      '    23.850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.459       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4244       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0056       1.0000         .10000E-03   10000.    
    21 'norm      '    6.7536       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    7.8653       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6658       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.6960       1.0000         .10000E-03   10000.    
    26 'norm      '    2.7419       1.0000         .10000E-03   10000.    
    27 'Prefactor '    72.023       1.0000         .10000E-03   10000.    
    28 'Prefactor '    12.855       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .47573       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3852       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5858.498     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     3984 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.469        .24514E-05** at limit **
   2  norm          1.5087        .33218        .73486E-08    .99799E-04
   3  Prefactor     5.2997        7.4499       -.57989E-07   -.62295E-04
   4  Prefactor     .10000E-03    5.1885        .47305E-07** at limit **
   5  Prefactor     114.45        101.83        .22475E-05   -.32997E-04
   6  norm          .10000E-03    2.9952        .19087E-07** at limit **
   7  norm          .10000E-03    19.250        .17429E-05** at limit **
   8  Prefactor     .10000E-03    .46033        .12029E-07** at limit **
   9  Prefactor     25.679        24.009       -.57359E-06    .20194E-04
  10  Prefactor     .10000E-03    10.907        .53738E-06** at limit **
  11  norm          .10000E-03    .96693        .16308E-06** at limit **
  12  Prefactor     .10000E-03    6.6795       -.34580E-07** at limit **
  13  Prefactor     .10000E-03    2.1011        .14323E-07** at limit **
  14  Prefactor     7.4488        47.287       -.10582E-04    .68989E-04
  15  norm          2.3637        1.2574        .31623E-06   -.22640E-03
  16  norm          23.851        12.666        .12554E-06    .24263E-04
  17  Prefactor     11.457        23.449        .29551E-06   -.19104E-04
  18  Prefactor     1.4260        3.6892       -.15287E-06   -.69542E-03
  19  Prefactor     .10000E-03    24.614       -.25703E-05** at limit **
  20  Prefactor     8.0016        17.527       -.25266E-05   -.73644E-03
  21  norm          6.7536        1.8414       -.19478E-07    .63428E-04
  22  Prefactor     .10000E-03    11.777       -.78852E-06** at limit **
  23  norm          7.8652        4.2852        .19952E-05   -.10470E-02
  24  Prefactor     4.6663        7.8681       -.22419E-06   -.17181E-03
  25  Prefactor     5.6963        4.1332       -.21572E-05    .76708E-03
  26  norm          2.7355        9.4682       -.71044E-05   -.34822E-03
  27  Prefactor     72.041        35.198        .76783E-05   -.41663E-03
  28  Prefactor     12.856        16.032       -.15401E-07   -.45733E-05
  29  Normalizat    .47579        .17663       -.13837E-05    .33227E-04
  30  Prefactor     1.3851        .21160        .87427E-06   -.12986E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.5087
  Prefactor  = 5.29971
  Prefactor  = 0.0001
  Prefactor  = 114.453
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.6792
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 7.44883
  norm       = 2.36366
  norm       = 23.8505
  Prefactor  = 11.4572
  Prefactor  = 1.42599
  Prefactor  = 0.0001
  Prefactor  = 8.00161
  norm       = 6.75364
  Prefactor  = 0.0001
  norm       = 7.8652
  Prefactor  = 4.66634
  Prefactor  = 5.69628
  norm       = 2.73548
  Prefactor  = 72.0407
  Prefactor  = 12.8559
  Normalizat = 0.475792
  Prefactor  = 1.38511
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.498     FROM HESSE     STATUS=OK           590 CALLS     4574 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5087        .33261        .19972E-04   -1.5462    
   3  Prefactor     5.2997        7.4441        .17459E-03   -1.5248    
   4  Prefactor     .10000E-03    5.1961        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     114.45        101.77        .37606E-04   -1.3564    
   6  norm          .10000E-03    2.9984        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .46184        .50689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.679        23.793        .79039E-04   -1.4694    
  10  Prefactor     .10000E-03    10.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5825        .14436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    98.356        .38220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1290        .10829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4488        47.178        .14687E-03   -1.5162    
  15  norm          2.3637        1.2568        .52335E-04   -1.5400    
  16  norm          23.851        12.674        .82022E-04   -1.4731    
  17  Prefactor     11.457        23.436        .11834E-03   -1.5031    
  18  Prefactor     1.4260        3.5901        .20425E-03   -1.5469    
  19  Prefactor     .10000E-03    24.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0016        17.756        .70854E-03   -1.5142    
  21  norm          6.7536        1.8405        .51995E-04   -1.5188    
  22  Prefactor     .10000E-03    11.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          7.8652        4.2365        .10158E-03   -1.5147    
  24  Prefactor     4.6663        7.8594        .18631E-03   -1.5276    
  25  Prefactor     5.6963        4.1011        .11563E-03   -1.5231    
  26  norm          2.7355        9.5556        .24587E-03   -1.5377    
  27  Prefactor     72.041        35.214        .47305E-04   -1.4008    
  28  Prefactor     12.856        16.032        .11172E-03   -1.4991    
  29  Normalizat    .47579        .20328        .31403E-03   -1.1355    
  30  Prefactor     1.3851        .24768        .24451E-03   -.80810    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08784e-09
Minuit parameter uncertainties:
  1  0.000221826
  2  0.33261
  3  7.4454
  4  8.65739e-08
  5  101.922
  6  6.00244e-07
  7  0.000109175
  8  7.14933e-07
  9  23.8018
  10  2.04006e-05
  11  2.25458e-05
  12  0.00107756
  13  1.4848e-06
  14  37.5358
  15  1.25684
  16  12.6753
  17  23.4547
  18  3.59066
  19  0.0001851
  20  17.7681
  21  1.84054
  22  3.85168e-05
  23  4.23666
  24  7.86119
  25  4.1013
  26  9.5609
  27  35.2245
  28  16.0372
  29  0.203601
  30  0.247897
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.851e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.115e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.385e+00  2.479e-01  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  4.758e-01  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.514 40.632
Photon Flux Upper Limit: 5.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158888/likelihoodResults_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.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) = 5858.49773801
delta logL = -0.000193439462237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5858.49754515
delta logL = -5.7717988966e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10729E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4313       1.0000          .0000       10.000    
     3 'Normalizat'    .47579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6800E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5858.498     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0635        .90712E-02** at limit **
   2  Index         2.4124        6.1153        .50000        .77380E-05
   3  Normalizat    .47579        .24622E-02    .70930E-01   -.14371E-03
   4  Prefactor     1.3851        .31442E-02    .55302E-01   -.30404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.41237
  Normalizat = 0.475792
  Prefactor  = 1.38511
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.498     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      275 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    101.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4124        7.5730        .50000       -.54396    
   3  Normalizat    .47579        .87525E-02    .31403E-03   -1.1355    
   4  Prefactor     1.3851        .11199E-01    .24451E-03   -.80810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.54334e-07
Minuit parameter uncertainties:
  1  0.000512286
  2  210.427
  3  0.00875251
  4  0.0111985
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158888': 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) = 5858.49754494
delta logL = -3.64882907888e-07

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  5.123e-04  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.412e+00  2.104e+02  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  2.078e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
677    Prefactor:  1.385e+00  1.120e-02  0.000e+00  1.000e+01 ( 1.000e+00)
678        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
679        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
676   Normalization:  4.758e-01  8.753e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.514 40.632

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/158888/cmap_HighResolution_309312001_309571201_4FGL_J1154.0+4037_daily_bin270.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.40e-08', time_completed='2021-09-04 15:47:07.065555', job_id='158888', GAL2='1.39', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1630795627.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.39', dlogl='-3.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='270' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 158888: <4FGL_J1154.0+4037_daily_bin270> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin270> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:21 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:31:23 2021
Terminated at Sat Sep  4 15:47:07 2021
Results reported at Sat Sep  4 15:47:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin270 178.514 40.632 309312001 309571201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1154.0+4037 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   927.28 sec.
    Max Memory :                                 1082 MB
    Average Memory :                             320.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            946 sec.

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

