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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin745
RA = 177.141, Dec = 26.4986
tmin = 432432001, tmax = 432691201
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='75736', job_status='RUN', time_executed='2021-09-04 11:26:53.747157', time_epoch_executed='1630780013.75' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75736

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75736/ft1_4FGL_J1148.5+2629_daily_bin745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75736/ft1_4FGL_J1148.5+2629_daily_bin745.fits outfile=/scratch/kocevski/75736/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin745.fits ra=177.141 dec=26.4986 rad=12.0 tmin=432432001.0 tmax=432691201.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 5.14
user 4.86
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.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/75736/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin745.fits evtable="EVENTS" outfile="/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.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.54
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits" evtable="EVENTS" scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits sctable="SC_DATA" outfile=/scratch/kocevski/75736/ltcube_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.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/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits
.....................!
real 11.93
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits sctable="SC_DATA" expcube=/scratch/kocevski/75736/ltcube_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits outfile=/scratch/kocevski/75736/expmap_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.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/75736/ltcube_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits
.....................!
real 190.21
user 185.51
sys 4.27

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

Setting source of interest to:
4FGL J1148.5+2629 @ 177.141 26.4986

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits outfile=/scratch/kocevski/75736/cmap_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=177.141 yref=26.4986 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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits outfile=/scratch/kocevski/75736/cmap_HighResolution_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=177.141 yref=26.4986 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/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits evtable="EVENTS" scfile=/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75736/Model_4FGL_J1148.5+2629_daily_bin745.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/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits.....................!
real 48.26
user 46.38
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits', '/scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits', expMap='/scratch/kocevski/75736/expmap_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits', expCube='/scratch/kocevski/75736/ltcube_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75736/Model_4FGL_J1148.5+2629_daily_bin745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1148.5+2629'

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  3.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/75736/ft1_filtered_4FGL_J1148.5+2629_daily_bin745.fits
Spacecraft file(s): /scratch/kocevski/75736/ft2_4FGL_J1148.5+2629_daily_bin745.fits
Exposure map: /scratch/kocevski/75736/expmap_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits
Exposure cube: /scratch/kocevski/75736/ltcube_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75736/Model_4FGL_J1148.5+2629_daily_bin745.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) = 4999.16300494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .13755E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3994       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .12848E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0610       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24984       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61541       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .62435       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.111       1.0000         .10000E-03   10000.    
    16 'norm      '    .63671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12496E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.5718       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12259E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.2780       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0837       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.0566       1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.730       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8443       1.0000         .10000E-03   10000.    
    27 'norm      '    4.6779       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0195       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0719       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4999.120     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4008 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.8893        .90712E-02** at limit **
   2  Prefactor     .10000E-03    1.7785        .52593E-01** at limit **
   3  norm          4.4006        10.987        .48002E-02    .14691E-03
   4  Prefactor     .10000E-03    4.9054        .90712E-02** at limit **
   5  norm          .10541E-03    5.9331        .90871E-01** at limit **
   6  Prefactor     .10001E-03    10.028        .90712E-02** at limit **
   7  Prefactor     2.0594        2.6286        .71962E-02    .49555E-03
   8  Prefactor     .10000E-03    27.130        .90712E-02** at limit **
   9  Prefactor     16.636        16.247        .24556E-02    .11377E-02
  10  Prefactor     .11016        9.3116        .98485E-01    .11286E-02
  11  Prefactor     .24899        3.9207        .77162E-01    .17882E-03
  12  Prefactor     .60673        12.634        .11733        .16318E-03
  13  Prefactor     .10001E-03    8.4464        .90712E-02** at limit **
  14  Prefactor     .62321        1.5845        .27441E-01    .95070E-03
  15  Prefactor     10.090        32.341        .31503E-02    .25333E-03
  16  norm          .63675        1.0697        .18872E-01    .73395E-03
  17  Prefactor     .10000E-03    2.9575        .63813E-01** at limit **
  18  Prefactor     .10000E-03    49.877        .90712E-02** at limit **
  19  Prefactor     3.5719        3.7366        .53459E-02    .29837E-03
  20  Prefactor     .10000E-03    2.7500        .59748E-01** at limit **
  21  norm          4.2785        3.0019        .48697E-02    .21493E-04
  22  Prefactor     .10000E-03    3.4892        .90712E-02** at limit **
  23  Prefactor     2.0835        2.0383        .71512E-02   -.87265E-04
  24  Prefactor     6.0566        3.1705        .40786E-02    .66678E-04
  25  Prefactor     21.731        9.1708        .21481E-02    .10218E-02
  26  norm          1.8442        .44096        .49596E-02   -.81775E-04
  27  norm          4.6772        4.1202        .46516E-02   -.13440E-03
  28  Prefactor     .10000E-03    9.6827        .90712E-02** at limit **
  29  Normalizat    1.0201        .21584        .43421E-01   -.47295E-04
  30  Prefactor     1.0712        .22472        .63919E-01   -.33391E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.000100002
  norm       = 4.40057
  Prefactor  = 0.0001
  norm       = 0.000105407
  Prefactor  = 0.000100006
  Prefactor  = 2.05944
  Prefactor  = 0.0001
  Prefactor  = 16.6363
  Prefactor  = 0.110158
  Prefactor  = 0.248992
  Prefactor  = 0.606732
  Prefactor  = 0.00010001
  Prefactor  = 0.623208
  Prefactor  = 10.0905
  norm       = 0.636754
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.57192
  Prefactor  = 0.0001
  norm       = 4.27851
  Prefactor  = 0.0001
  Prefactor  = 2.08351
  Prefactor  = 6.05657
  Prefactor  = 21.7311
  norm       = 1.84424
  norm       = 4.67719
  Prefactor  = 0.0001
  Normalizat = 1.02012
  Prefactor  = 1.0712
 **********
 **   18 **HESSE 
 **********

 FCN=   4999.120     FROM HESSE     STATUS=OK           618 CALLS     4626 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.9294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4601        .18003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4006        10.970        .19201E-03   -1.5288    
   4  Prefactor     .10000E-03    4.9441        .15291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10541E-03    9.0358        .61817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    10.146        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0594        2.6098        .12083E-03   -1.5421    
   8  Prefactor     .10000E-03    27.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.636        16.403        .98225E-04   -1.4892    
  10  Prefactor     .11016        15.363        .67663E-01   -1.5642    
  11  Prefactor     .24899        37.110        .24722E-02   -1.5608    
  12  Prefactor     .60673        88.033        .45994E-02   -1.5552    
  13  Prefactor     .10001E-03    8.4913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .62321        1.3454        .13198E-02   -1.5550    
  15  Prefactor     10.090        32.241        .12601E-03   -1.5073    
  16  norm          .63675        .93006        .89705E-03   -1.5548    
  17  Prefactor     .10000E-03    10.848        .22788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.5719        3.5275        .12616E-03   -1.5330    
  20  Prefactor     .10000E-03    10.868        .21665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.2785        3.0043        .95464E-04   -1.5294    
  22  Prefactor     .10000E-03    3.5020        .12898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0835        2.0491        .93450E-04   -1.5419    
  24  Prefactor     6.0566        3.1637        .85769E-04   -1.5216    
  25  Prefactor     21.731        9.1716        .85925E-04   -1.4775    
  26  norm          1.8442        .44088        .21933E-04   -1.5436    
  27  norm          4.6772        4.1176        .13012E-03   -1.5275    
  28  Prefactor     .10000E-03    9.7615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0201        .25269        .25420E-03   -.92359    
  30  Prefactor     1.0712        .26697        .28272E-03   -.90393    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79614e-08
Minuit parameter uncertainties:
  1  0.000666411
  2  0.000234446
  3  10.975
  4  5.13667e-07
  5  0.0139816
  6  0.000479343
  7  2.60992
  8  0.000147324
  9  16.4074
  10  2.60127
  11  6.08211
  12  14.6376
  13  0.000569046
  14  1.34551
  15  32.2969
  16  0.930085
  17  6.74671e-05
  18  0.000436136
  19  3.52773
  20  0.00014508
  21  3.00437
  22  3.36291e-06
  23  2.04919
  24  3.16383
  25  9.1722
  26  0.440876
  27  4.11782
  28  0.000119784
  29  0.252989
  30  0.267299
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  6.067e-01  1.464e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.924e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.071e+00  2.673e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.020e+00  2.530e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 177.141 26.499
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75736/likelihoodResults_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.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) = 4999.11543215
delta logL = 0.00442192346054

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4999.11313575
delta logL = 0.00671832290664

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4999.113     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      356 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1309        454.19        .10981E-01    .94554E-03
   2  Index         3.7495        5.9868        .50000        .13973E-03
   3  Normalizat    1.0149        .26197E-01    .44251E-01    .10298E-04
   4  Prefactor     1.0746        .29893E-01    .63832E-01    .55230E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13091
  Index      = 3.74946
  Normalizat = 1.01488
  Prefactor  = 1.07459
 **********
 **   18 **HESSE 
 **********

 FCN=   4999.113     FROM HESSE     STATUS=OK            33 CALLS      389 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1309        48.144        .43924E-03   -1.5495    
   2  Index         3.7495        6.2584        .40813E-01   -.25279    
   3  Normalizat    1.0149        .23734        .25480E-03   -.92534    
   4  Prefactor     1.0746        .26557        .28233E-03   -.90283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18398e-08
Minuit parameter uncertainties:
  1  14.7697
  2  9.85407
  3  0.237592
  4  0.265901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75736': 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) = 4999.11313572
delta logL = 0.00671834679088

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.131e+00  1.477e+01  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  3.749e+00  9.854e+00  0.000e+00  1.000e+01 (-1.000e+00)
289        Scale:  3.685e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
615    Prefactor:  1.075e+00  2.659e-01  0.000e+00  1.000e+01 ( 1.000e+00)
616        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
617        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
614   Normalization:  1.015e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 177.141 26.499

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/75736/cmap_HighResolution_432432001_432691201_4FGL_J1148.5+2629_daily_bin745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.44e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-04 11:40:29.174083', job_id='75736', GAL2='1.07', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1630780829.17', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='6.72e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='745' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:40:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 75736: <4FGL_J1148.5+2629_daily_bin745> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 11:26:30 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:26:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 11:26:32 2021
Terminated at Sat Sep  4 11:40:29 2021
Results reported at Sat Sep  4 11:40:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin745 177.141 26.4986 432432001 432691201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1148.5+2629 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   813.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

