/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 18 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin39
RA = 178.514, Dec = 40.632
tmin = 249436801, tmax = 249696001
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='157597', job_status='RUN', time_executed='2021-09-04 15:26:59.120140', time_epoch_executed='1630794419.12' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157597

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157597/ft1_4FGL_J1154.0+4037_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157597/ft1_4FGL_J1154.0+4037_daily_bin39.fits outfile=/scratch/kocevski/157597/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin39.fits ra=178.514 dec=40.632 rad=12.0 tmin=249436801.0 tmax=249696001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.43
user 1.27
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits" evtable="EVENTS" scfile=/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits sctable="SC_DATA" outfile=/scratch/kocevski/157597/ltcube_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.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/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits
.....................!
real 12.53
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/157597/ltcube_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits outfile=/scratch/kocevski/157597/expmap_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.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/157597/ltcube_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits
.....................!
real 191.86
user 187.38
sys 4.10

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/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits scfile=/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits outfile=/scratch/kocevski/157597/cmap_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits scfile=/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits outfile=/scratch/kocevski/157597/cmap_HighResolution_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.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.53
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits', '/scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits', expMap='/scratch/kocevski/157597/expmap_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits', expCube='/scratch/kocevski/157597/ltcube_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/157597/Model_4FGL_J1154.0+4037_daily_bin39.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/157597/ft1_filtered_4FGL_J1154.0+4037_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/157597/ft2_4FGL_J1154.0+4037_daily_bin39.fits
Exposure map: /scratch/kocevski/157597/expmap_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits
Exposure cube: /scratch/kocevski/157597/ltcube_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/157597/Model_4FGL_J1154.0+4037_daily_bin39.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) = 4689.80484471

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2933       1.0000         .10000E-03   10000.    
     2 'norm      '    1.5989       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.3371       1.0000         .10000E-03   10000.    
     7 'norm      '    .40483E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14918E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.133       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16782E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10534E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .41375       1.0000         .10000E-03   10000.    
    16 'norm      '    .12447E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24170E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.180       1.0000         .10000E-03   10000.    
    21 'norm      '    3.5785       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1370       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6164       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.1618       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .77039       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1336       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=   4689.663     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     3429 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3077        174.79        .35361E-04   -.19574E-05
   2  norm          1.5990        .37475       -.11959E-08   -.21436E-03
   3  Prefactor     .10000E-03    4.6694        .12825E-05** at limit **
   4  Prefactor     .10000E-03    4.7798       -.51696E-06** at limit **
   5  Prefactor     .10000E-03    59.851       -.23417E-04** at limit **
   6  norm          9.3354        9.6668        .65287E-07   -.42244E-04
   7  norm          .10000E-03    293.91       -.33319E-04** at limit **
   8  Prefactor     .10000E-03    1.6513        .82709E-07** at limit **
   9  Prefactor     .10000E-03    169.42       -.80966E-05** at limit **
  10  Prefactor     40.126        21.256        .10214E-05   -.55876E-04
  11  norm          .10000E-03    1.5295        .32171E-07** at limit **
  12  Prefactor     .10000E-03    4.6201       -.81554E-06** at limit **
  13  Prefactor     .10003E-03    2.8726        .63381E-06** at limit **
  14  Prefactor     .10000E-03    64.932        .26386E-04** at limit **
  15  norm          .41323        .91947       -.18152E-06   -.18223E-02
  16  norm          .10000E-03    5.6764       -.51356E-08** at limit **
  17  Prefactor     .10000E-03    8.1451        .34009E-05** at limit **
  18  Prefactor     .10000E-03    3.0572       -.17289E-05** at limit **
  19  Prefactor     31.572        31.940       -.22834E-05   -.22134E-04
  20  Prefactor     19.149        22.793        .72476E-05    .40802E-03
  21  norm          3.5787        1.4963        .23643E-07   -.13787E-03
  22  Prefactor     .10000E-03    24.985        .40464E-06** at limit **
  23  norm          3.1380        3.6521       -.75184E-07   -.35520E-03
  24  Prefactor     6.6225        8.9830        .10734E-06   -.13349E-03
  25  Prefactor     4.1617        2.9361        .58424E-07    .10013E-03
  26  norm          .10000E-03    3.1783       -.15253E-07** at limit **
  27  Prefactor     .10000E-03    9.3133        .19020E-05** at limit **
  28  Prefactor     .10000E-03    8.4217       -.50162E-05** at limit **
  29  Normalizat    .77026        .18167       -.13781E-05    .18550E-03
  30  Prefactor     1.1335        .21430       -.20428E-06    .14325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.30771
  norm       = 1.59895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.3354
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1256
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 0.413229
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 31.5724
  Prefactor  = 19.1489
  norm       = 3.57868
  Prefactor  = 0.0001
  norm       = 3.13801
  Prefactor  = 6.62251
  Prefactor  = 4.16169
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.770257
  Prefactor  = 1.13354
 **********
 **   18 **HESSE 
 **********

 FCN=   4689.663     FROM HESSE     STATUS=OK           586 CALLS     4015 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3077        172.28        .13921E-03   -1.5131    
   2  norm          1.5990        .37529        .19687E-04   -1.5455    
   3  Prefactor     .10000E-03    4.6736        .14449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7815        .14622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    59.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.3354        9.6519        .13115E-03   -1.5097    
   7  norm          .10000E-03    299.63        .42516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7051        .16799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    173.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.126        21.172        .63273E-04   -1.4440    
  11  norm          .10000E-03    1.5801        .16501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6236        .14372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    20.173        .22037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .41323        .86951        .91421E-03   -1.5579    
  16  norm          .10000E-03    14.697        .31740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.1442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.415        .21375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.572        31.810        .71290E-04   -1.4584    
  20  Prefactor     19.149        21.898        .91453E-04   -1.4832    
  21  norm          3.5787        1.4959        .52486E-04   -1.5330    
  22  Prefactor     .10000E-03    25.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1380        3.6503        .13037E-03   -1.5354    
  24  Prefactor     6.6225        8.9681        .15601E-03   -1.5193    
  25  Prefactor     4.1617        2.9458        .91637E-04   -1.5300    
  26  norm          .10000E-03    3.1930        .11923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    9.3208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.4051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .77026        .21023        .24776E-03   -1.0118    
  30  Prefactor     1.1335        .25317        .25524E-03   -.88402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38275e-09
Minuit parameter uncertainties:
  1  75.9139
  2  0.375286
  3  3.65178e-07
  4  2.582e-07
  5  1.56591e-05
  6  9.65349
  7  0.00195519
  8  1.34919e-05
  9  0.000402725
  10  21.1763
  11  3.75478e-06
  12  5.59116e-06
  13  0.00142787
  14  7.10972e-06
  15  0.869538
  16  0.000150338
  17  2.10704e-06
  18  0.000199251
  19  31.8269
  20  21.9076
  21  1.49596
  22  2.42385e-05
  23  3.65051
  24  8.96992
  25  2.94586
  26  1.76832e-06
  27  1.65745e-06
  28  3.71536e-06
  29  0.210451
  30  0.253435
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  3.157e+01  3.183e+01  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.134e+00  2.534e-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:  7.703e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.97
Ra Dec: 178.514 40.632
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 1.73e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 9.21e-06 +/- 9.28e-06

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) = 4688.98755895
delta logL = 0.675893376319

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4688.93364343
delta logL = 0.729808891213

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.173       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3002       1.0000          .0000       10.000    
     3 'Normalizat'    .77967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1297       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4688.934     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      246 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.249        46.834        .30161E-03   -.37694E-06
   2  Index         1.2999        .62248        .10380E-01   -.51235E-05
   3  Normalizat    .77950        .20474        .24637E-03   -.73692E-04
   4  Prefactor     1.1298        .25238        .25558E-03    .10458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.2493
  Index      = 1.29987
  Normalizat = 0.7795
  Prefactor  = 1.12981
 **********
 **   18 **HESSE 
 **********

 FCN=   4688.934     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.249        47.262        .12064E-04   -1.4377    
   2  Index         1.2999        .62823        .41521E-03   -.83311    
   3  Normalizat    .77950        .20492        .98550E-05   -1.0083    
   4  Prefactor     1.1298        .25261        .51116E-04   -.88519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84983e-10
Minuit parameter uncertainties:
  1  47.3016
  2  0.631941
  3  0.205122
  4  0.252874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157597': 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) = 4688.93364117
delta logL = 0.729811160137

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  4.425e+01  4.730e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  1.300e+00  6.319e-01  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.130e+00  2.529e-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:  7.795e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.43
Ra Dec: 178.514 40.632
Photon Index (Free Index): 1.30 +/- 0.63
Photon Flux (Free Index): 6.66e-09 +/- 8.52e-09
Energy Flux (Free Index): 4.08e-05 +/- 6.51e-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/157597/cmap_HighResolution_249436801_249696001_4FGL_J1154.0+4037_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.73e-08', energy_flux2='4.08e-05', photon_flux_error='1.74e-08', dlogl='7.30e-01', energy_flux='9.21e-06', photon_flux2='6.66e-09', job_status='DONE', time_completed='2021-09-04 15:37:50.394704', photon_index_error2='0.63', photon_index2='1.30', ts='4.97', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='6.51e-05', EG='0.77', time_epoch_completed='1630795070.39', return_code='0', job_id='157597', GAL2='1.13', EG2='0.78', return_code2='0', energy_flux_error='9.28e-06', photon_flux_error2='8.52e-09', ts2='6.43', photon_index='2.11' WHERE bin_id='39' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:37:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 157597: <4FGL_J1154.0+4037_daily_bin39> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin39> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:26:30 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:26:31 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:26:31 2021
Terminated at Sat Sep  4 15:37:50 2021
Results reported at Sat Sep  4 15:37:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin39 178.514 40.632 249436801 249696001 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 :                                   650.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   679 sec.
    Turnaround time :                            680 sec.

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

