/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 24 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 = 7382
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1154.0+4037_daily_bin90
RA = 178.514, Dec = 40.632
tmin = 262656001, tmax = 262915201
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='157671', job_status='RUN', time_executed='2021-09-04 15:27:10.002891', time_epoch_executed='1630794430.0' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='90'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/157671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/157671/ft1_4FGL_J1154.0+4037_daily_bin90.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/157671/ft1_4FGL_J1154.0+4037_daily_bin90.fits outfile=/scratch/kocevski/157671/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin90.fits ra=178.514 dec=40.632 rad=12.0 tmin=262656001.0 tmax=262915201.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.42
user 1.23
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.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/157671/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin90.fits evtable="EVENTS" outfile="/scratch/kocevski/157671/ft1_filtered_4FGL_J1154.0+4037_daily_bin90.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/157671/ft1_filtered_4FGL_J1154.0+4037_daily_bin90.fits" evtable="EVENTS" scfile=/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits sctable="SC_DATA" outfile=/scratch/kocevski/157671/ltcube_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.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/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits
.....................!
real 12.51
user 12.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/157671/ft1_filtered_4FGL_J1154.0+4037_daily_bin90.fits evtable="EVENTS" scfile=/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits sctable="SC_DATA" expcube=/scratch/kocevski/157671/ltcube_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.fits outfile=/scratch/kocevski/157671/expmap_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.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/157671/ltcube_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.fits
.....................!
real 192.37
user 187.11
sys 4.81

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/157671/ft1_filtered_4FGL_J1154.0+4037_daily_bin90.fits scfile=/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits outfile=/scratch/kocevski/157671/cmap_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/157671/ft1_filtered_4FGL_J1154.0+4037_daily_bin90.fits scfile=/scratch/kocevski/157671/ft2_4FGL_J1154.0+4037_daily_bin90.fits outfile=/scratch/kocevski/157671/cmap_HighResolution_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .88227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .55922       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    73.880       1.0000         .10000E-03   10000.    
     6 'norm      '    29.612       1.0000         .10000E-03   10000.    
     7 'norm      '    48.567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7689       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .45992       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.5559       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4134       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.349       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    28.028       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3466       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.1264       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.8116       1.0000         .10000E-03   10000.    
    26 'norm      '    11.865       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'    1.1799       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .67754       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=   5280.474     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3910 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.109        .14084E-04** at limit **
   2  norm          .88232        .27407        .98803E-08    .37814E-02
   3  Prefactor     .44773        9.5442       -.49393E-05    .40223E-03
   4  Prefactor     .10000E-03    3.5408       -.23679E-07** at limit **
   5  Prefactor     73.865        90.377       -.15774E-04    .14904E-05
   6  norm          29.618        16.898        .46688E-05    .85308E-03
   7  norm          48.543        61.120       -.27839E-04    .16214E-05
   8  Prefactor     .10000E-03    .95981        .43549E-07** at limit **
   9  Prefactor     .10000E-03    26.443       -.21771E-04** at limit **
  10  Prefactor     .10000E-03    5.9227       -.51985E-06** at limit **
  11  norm          2.7694        2.3038       -.12143E-06    .33085E-03
  12  Prefactor     .10000E-03    5.4653        .23089E-06** at limit **
  13  Prefactor     .42198        2.9501        .17071E-06   -.37273E-03
  14  Prefactor     .10000E-03    34.170        .92512E-05** at limit **
  15  norm          2.5563        1.2042       -.63605E-07   -.36248E-03
  16  norm          1.4131        5.5093       -.23914E-05   -.74146E-03
  17  Prefactor     24.341        27.797       -.55519E-05   -.23141E-04
  18  Prefactor     .10000E-03    1.2522        .97492E-07** at limit **
  19  Prefactor     .10000E-03    17.131        .85441E-05** at limit **
  20  Prefactor     28.025        21.365       -.14833E-05    .25456E-05
  21  norm          2.3467        1.3620       -.24896E-07   -.35821E-04
  22  Prefactor     .10000E-03    15.157        .32776E-05** at limit **
  23  norm          4.1264        3.8281       -.58998E-06   -.21474E-03
  24  Prefactor     .10000E-03    10.104        .84564E-05** at limit **
  25  Prefactor     2.8116        3.0510        .19832E-06   -.20265E-03
  26  norm          11.866        8.1240       -.27335E-06    .45245E-04
  27  Prefactor     .10000E-03    20.344       -.49173E-05** at limit **
  28  Prefactor     .10000E-03    10.870       -.12300E-04** at limit **
  29  Normalizat    1.1797        .18696        .60213E-06    .24979E-03
  30  Prefactor     .67779        .21441        .23649E-05    .10962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.882316
  Prefactor  = 0.447732
  Prefactor  = 0.0001
  Prefactor  = 73.8652
  norm       = 29.6185
  norm       = 48.5427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.76939
  Prefactor  = 0.0001
  Prefactor  = 0.421976
  Prefactor  = 0.0001
  norm       = 2.5563
  norm       = 1.4131
  Prefactor  = 24.3407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0251
  norm       = 2.3467
  Prefactor  = 0.0001
  norm       = 4.12639
  Prefactor  = 0.0001
  Prefactor  = 2.81161
  norm       = 11.8663
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17972
  Prefactor  = 0.677786
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.474     FROM HESSE     STATUS=OK           584 CALLS     4494 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .88232        .27639        .20347E-04   -1.5520    
   3  Prefactor     .44773        117.56        .39508E-02   -1.5574    
   4  Prefactor     .10000E-03    3.5415        .13353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     73.865        90.370        .46711E-04   -1.3987    
   6  norm          29.618        17.477        .73626E-04   -1.4619    
   7  norm          48.543        60.985        .57540E-04   -1.4313    
   8  Prefactor     .10000E-03    .96971        .69349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    26.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9286        .17272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7694        2.2892        .95763E-04   -1.5375    
  12  Prefactor     .10000E-03    5.4753        .16590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .42198        16.052        .23124E-02   -1.5578    
  14  Prefactor     .10000E-03    34.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.5563        1.2006        .51856E-04   -1.5388    
  16  norm          1.4131        5.5001        .33021E-03   -1.5470    
  17  Prefactor     24.341        27.808        .81178E-04   -1.4721    
  18  Prefactor     .10000E-03    1.2612        .79319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.025        21.358        .75674E-04   -1.4649    
  21  norm          2.3467        1.3600        .62299E-04   -1.5402    
  22  Prefactor     .10000E-03    15.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.1264        3.8457        .12370E-03   -1.5302    
  24  Prefactor     .10000E-03    10.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.8116        3.0583        .12005E-03   -1.5373    
  26  norm          11.866        8.1203        .11630E-03   -1.5019    
  27  Prefactor     .10000E-03    20.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1797        .21565        .21576E-03   -.87232    
  30  Prefactor     .67779        .24497        .32613E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72141e-09
Minuit parameter uncertainties:
  1  1.11167e-05
  2  0.276395
  3  14.5374
  4  8.01089e-07
  5  90.5389
  6  17.4798
  7  61.0631
  8  2.80541e-06
  9  7.16182e-06
  10  3.63976e-06
  11  2.28928
  12  1.02241e-06
  13  5.20612
  14  2.53051e-05
  15  1.20061
  16  5.50205
  17  27.8229
  18  3.32467e-06
  19  3.06186e-07
  20  21.3639
  21  1.36001
  22  3.3568e-05
  23  3.84589
  24  8.40951e-05
  25  3.05848
  26  8.1211
  27  3.09252e-06
  28  4.97022e-06
  29  0.215809
  30  0.245356
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.062e-07  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:  6.778e-01  2.454e-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:  1.180e+00  2.158e-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: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/157671/likelihoodResults_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.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) = 5280.47453796
delta logL = -0.000277751647445

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5280.47426193
delta logL = -1.72636646312e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5192       1.0000          .0000       10.000    
     3 'Normalizat'    1.1797       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67779       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=   5280.474     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      276 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10359E-03    1.5456        .18142E-01** at limit **
   2  Index         2.4291        7.3243        .50000        .22183E-04
   3  Normalizat    1.1797        .15591E-02    .21576E-03   -.22387E-03
   4  Prefactor     .67779        .18405E-02    .32613E-03   -.12591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103592
  Index      = 2.42906
  Normalizat = 1.17972
  Prefactor  = 0.677787
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.474     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10359E-03    57.202        .24690E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4291        5.1057        .50000       -.54006    
   3  Normalizat    1.1797        .95189E-02    .43151E-04   -.87232    
   4  Prefactor     .67779        .11237E-01    .13045E-04   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.60023e-09
Minuit parameter uncertainties:
  1  0.0286975
  2  242.717
  3  0.00951892
  4  0.0112373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/157671': 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) = 5280.47426155
delta logL = -1.34355468617e-06

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.036e-04  2.870e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.429e+00  2.427e+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:  6.778e-01  1.124e-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:  1.180e+00  9.519e-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/157671/cmap_HighResolution_262656001_262915201_4FGL_J1154.0+4037_daily_bin90.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2021-09-04 15:41:29.509576', job_id='157671', GAL2='0.68', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630795289.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='-1.34e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='90' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:41:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 157671: <4FGL_J1154.0+4037_daily_bin90> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin90 178.514 40.632 262656001 262915201 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 :                                   858.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            895 sec.

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

