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


Performing analysis on: 4FGL_J1154.0+4037_daily_bin294
RA = 178.514, Dec = 40.632
tmin = 315532801, tmax = 315792001
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='158924', job_status='RUN', time_executed='2021-09-04 15:34:03.162873', time_epoch_executed='1630794843.16' WHERE source_name='4FGL J1154.0+4037' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/158924

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/158924/ft1_4FGL_J1154.0+4037_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/158924/ft1_4FGL_J1154.0+4037_daily_bin294.fits outfile=/scratch/kocevski/158924/ft1_filteredMKT_4FGL_J1154.0+4037_daily_bin294.fits ra=178.514 dec=40.632 rad=12.0 tmin=315532801.0 tmax=315792001.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 3.76
user 3.53
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/158924/ft1_filtered_4FGL_J1154.0+4037_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/158924/ltcube_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.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/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits
.....................!
real 11.97
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/158924/ft1_filtered_4FGL_J1154.0+4037_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/158924/ltcube_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.fits outfile=/scratch/kocevski/158924/expmap_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.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/158924/ltcube_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.fits
.....................!
real 191.06
user 185.66
sys 5.01

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/158924/ft1_filtered_4FGL_J1154.0+4037_daily_bin294.fits scfile=/scratch/kocevski/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits outfile=/scratch/kocevski/158924/cmap_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/158924/ft1_filtered_4FGL_J1154.0+4037_daily_bin294.fits scfile=/scratch/kocevski/158924/ft2_4FGL_J1154.0+4037_daily_bin294.fits outfile=/scratch/kocevski/158924/cmap_HighResolution_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    125.40       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7404       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    130.86       1.0000         .10000E-03   10000.    
     6 'norm      '    23.350       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2668       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9572       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17409E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7413       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .29676       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9515       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .15862E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.321       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.8569       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .51230E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.6440       1.0000         .10000E-03   10000.    
    26 'norm      '    21.582       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.2671       1.0000         .10000E-03   10000.    
    28 'Prefactor '    22.318       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .66771       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1498       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=   4674.237     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     4022 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     125.34        140.72        .35495E-05    .89682E-04
   2  norm          1.7404        .44694        .98347E-09   -.62969E-04
   3  Prefactor     26.096        23.886       -.13393E-06    .15145E-04
   4  Prefactor     .10000E-03    5.4760       -.19321E-07** at limit **
   5  Prefactor     130.81        137.67        .36105E-05    .90289E-04
   6  norm          23.352        20.508        .57650E-07    .27417E-04
   7  norm          .10000E-03    25.753        .60882E-06** at limit **
   8  Prefactor     2.2666        2.4827        .64982E-07    .42990E-03
   9  Prefactor     .10000E-03    21.873        .16279E-07** at limit **
  10  Prefactor     6.0108        23.018       -.44691E-05    .90399E-04
  11  norm          2.5128        2.7674        .24519E-06    .61830E-03
  12  Prefactor     .10002E-03    74.623        .80152E-05** at limit **
  13  Prefactor     5.7415        8.1290       -.44777E-06    .12604E-03
  14  Prefactor     .10000E-03    19.158        .32530E-06** at limit **
  15  norm          .29647        1.0706       -.57939E-06    .73483E-03
  16  norm          5.9516        6.7541        .59842E-06    .16060E-03
  17  Prefactor     .10000E-03    35.435       -.49696E-06** at limit **
  18  Prefactor     3.9795        3.5204       -.26915E-07    .74704E-04
  19  Prefactor     .10002E-03    215.55        .79307E-05** at limit **
  20  Prefactor     .10000E-03    18.819       -.25644E-06** at limit **
  21  norm          13.321        2.8382       -.14131E-07    .23996E-03
  22  Prefactor     .10000E-03    31.933       -.13257E-05** at limit **
  23  norm          8.8573        4.5387        .67551E-07    .11933E-03
  24  Prefactor     .10000E-03    63.223       -.26735E-04** at limit **
  25  Prefactor     4.6445        3.6105       -.73961E-07    .28119E-05
  26  norm          21.582        13.521        .21116E-06    .59673E-04
  27  Prefactor     4.2641        73.681       -.16019E-05    .12412E-04
  28  Prefactor     22.316        27.213       -.55131E-07    .44581E-05
  29  Normalizat    .66769        .20207        .13118E-05    .27369E-03
  30  Prefactor     1.1500        .23119       -.49545E-06    .35926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 125.342
  norm       = 1.74043
  Prefactor  = 26.0965
  Prefactor  = 0.0001
  Prefactor  = 130.806
  norm       = 23.3517
  norm       = 0.0001
  Prefactor  = 2.26656
  Prefactor  = 0.0001
  Prefactor  = 6.01082
  norm       = 2.51282
  Prefactor  = 0.000100018
  Prefactor  = 5.74151
  Prefactor  = 0.0001
  norm       = 0.296467
  norm       = 5.95164
  Prefactor  = 0.000100001
  Prefactor  = 3.97955
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 13.3213
  Prefactor  = 0.0001
  norm       = 8.85729
  Prefactor  = 0.000100004
  Prefactor  = 4.64449
  norm       = 21.5815
  Prefactor  = 4.26406
  Prefactor  = 22.3158
  Normalizat = 0.667693
  Prefactor  = 1.14999
 **********
 **   18 **HESSE 
 **********

 FCN=   4674.237     FROM HESSE     STATUS=OK           600 CALLS     4622 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     125.34        141.22        .17973E-03   -1.3464    
   2  norm          1.7404        .44845        .22035E-04   -1.5444    
   3  Prefactor     26.096        23.903        .78412E-04   -1.4686    
   4  Prefactor     .10000E-03    5.4766        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     130.81        138.05        .17599E-03   -1.3416    
   6  norm          23.352        20.492        .82893E-04   -1.4741    
   7  norm          .10000E-03    25.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2666        2.4628        .10582E-03   -1.5407    
   9  Prefactor     .10000E-03    21.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.0108        23.444        .16452E-03   -1.5218    
  11  norm          2.5128        2.7385        .11146E-03   -1.5391    
  12  Prefactor     .10002E-03    80.705        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.7415        8.0735        .16763E-03   -1.5229    
  14  Prefactor     .10000E-03    19.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .29647        1.0786        .12289E-02   -1.5599    
  16  norm          5.9516        6.7542        .16460E-03   -1.5220    
  17  Prefactor     .10000E-03    35.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9795        3.5160        .11544E-03   -1.5309    
  19  Prefactor     .10002E-03    221.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.321        2.8383        .51196E-04   -1.4978    
  22  Prefactor     .10000E-03    32.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.8573        4.5446        .97402E-04   -1.5113    
  24  Prefactor     .10000E-03    61.846        .37224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.6445        3.6162        .10735E-03   -1.5277    
  26  norm          21.582        13.301        .86219E-04   -1.4779    
  27  Prefactor     4.2641        71.367        .19505E-03   -1.5295    
  28  Prefactor     22.316        27.212        .84787E-04   -1.4763    
  29  Normalizat    .66769        .23521        .29227E-03   -1.0518    
  30  Prefactor     1.1500        .27162        .27570E-03   -.87885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46031e-09
Minuit parameter uncertainties:
  1  141.601
  2  0.448449
  3  23.9115
  4  1.00552e-06
  5  138.395
  6  20.4978
  7  6.00878e-05
  8  2.46295
  9  2.23105e-05
  10  23.48
  11  2.73867
  12  0.0024082
  13  8.07504
  14  9.85839e-05
  15  1.07865
  16  6.75502
  17  0.000398987
  18  3.51617
  19  0.00367543
  20  4.08639e-06
  21  2.83833
  22  7.35538e-05
  23  4.54478
  24  0.000944344
  25  3.61639
  26  13.3025
  27  34.9378
  28  27.227
  29  0.235561
  30  0.271948
Done.

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

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  3.675e-03  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.150e+00  2.719e-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:  6.677e-01  2.356e-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: 6.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/158924/likelihoodResults_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4674.23677422
delta logL = -2.140156721e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4674.23675287
delta logL = -5.37729647476e-08

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 'Index     '    2.0851       1.0000          .0000       10.000    
     3 'Normalizat'    .66770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1500       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=   4674.215     FROM MIGRAD    STATUS=CONVERGED    141 CALLS      315 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8334        42.912        .36285E-03    .47938E-05
   2  Index         2.9632        3.2503        .87696E-02    .86716E-04
   3  Normalizat    .66112        .22419        .29366E-03   -.18962E-03
   4  Prefactor     1.1519        .26982        .27551E-03   -.18056E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83341
  Index      = 2.96322
  Normalizat = 0.661117
  Prefactor  = 1.15188
 **********
 **   18 **HESSE 
 **********

 FCN=   4674.215     FROM HESSE     STATUS=OK            25 CALLS      340 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8334        29.281        .14514E-04   -1.5979    
   2  Index         2.9632        2.7777        .17539E-02   -.41956    
   3  Normalizat    .66112        .22428        .11746E-04   -1.0545    
   4  Prefactor     1.1519        .26986        .55102E-04   -.87825    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17782e-11
Minuit parameter uncertainties:
  1  14.6621
  2  2.98597
  3  0.224594
  4  0.270184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/158924': 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) = 4674.2150567
delta logL = 0.0216961162887

Extracting fit parameters...

4FGL J1154.0+4037
   Spectrum: PowerLaw
347    Prefactor:  1.833e+00  1.466e+01  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.963e+00  2.986e+00  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.152e+00  2.702e-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:  6.611e-01  2.246e-01  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/158924/cmap_HighResolution_315532801_315792001_4FGL_J1154.0+4037_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.82e-08', time_completed='2021-09-04 15:47:32.652779', job_id='158924', GAL2='1.15', fit_tolerance='1e-08', EG2='0.66', EG='0.67', time_epoch_completed='1630795652.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.17e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='294' AND source_name='4FGL J1154.0+4037' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:47:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 158924: <4FGL_J1154.0+4037_daily_bin294> in cluster <slac> Done

Job <4FGL_J1154.0+4037_daily_bin294> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 15:31:24 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:31:26 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:26 2021
Terminated at Sat Sep  4 15:47:33 2021
Results reported at Sat Sep  4 15:47:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1154.0+4037_daily_bin294 178.514 40.632 315532801 315792001 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 :                                   808.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

