/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7528
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1148.5+2629_daily_bin687
RA = 177.141, Dec = 26.4986
tmin = 417398401, tmax = 417657601
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='75644', job_status='RUN', time_executed='2021-09-04 11:26:42.908343', time_epoch_executed='1630780002.91' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='687'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/75644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/75644/ft1_4FGL_J1148.5+2629_daily_bin687.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/75644/ft1_4FGL_J1148.5+2629_daily_bin687.fits outfile=/scratch/kocevski/75644/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin687.fits ra=177.141 dec=26.4986 rad=12.0 tmin=417398401.0 tmax=417657601.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.64
user 5.38
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.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/75644/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin687.fits evtable="EVENTS" outfile="/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.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.30
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits" evtable="EVENTS" scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits sctable="SC_DATA" outfile=/scratch/kocevski/75644/ltcube_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.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/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits
.....................!
real 11.81
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits evtable="EVENTS" scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits sctable="SC_DATA" expcube=/scratch/kocevski/75644/ltcube_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits outfile=/scratch/kocevski/75644/expmap_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.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/75644/ltcube_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits
.....................!
real 189.99
user 185.25
sys 4.37

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/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits outfile=/scratch/kocevski/75644/cmap_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits outfile=/scratch/kocevski/75644/cmap_HighResolution_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits evtable="EVENTS" scfile=/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/75644/Model_4FGL_J1148.5+2629_daily_bin687.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/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits.....................!
real 49.42
user 48.03
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits', '/scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits', expMap='/scratch/kocevski/75644/expmap_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits', expCube='/scratch/kocevski/75644/ltcube_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/75644/Model_4FGL_J1148.5+2629_daily_bin687.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/75644/ft1_filtered_4FGL_J1148.5+2629_daily_bin687.fits
Spacecraft file(s): /scratch/kocevski/75644/ft2_4FGL_J1148.5+2629_daily_bin687.fits
Exposure map: /scratch/kocevski/75644/expmap_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits
Exposure cube: /scratch/kocevski/75644/ltcube_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/75644/Model_4FGL_J1148.5+2629_daily_bin687.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) = 5218.09884326

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10367E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7946       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1089       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10558E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6363       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2734       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.1448       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .77514       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26293       1.0000         .10000E-03   10000.    
    21 'norm      '    20.184       1.0000         .10000E-03   10000.    
    22 'Prefactor '    17.054       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12754E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.9284       1.0000         .10000E-03   10000.    
    27 'norm      '    8.6448       1.0000         .10000E-03   10000.    
    28 'Prefactor '    6.2257       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .79966       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3103       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5217.965     FROM MIGRAD    STATUS=CONVERGED    775 CALLS     3332 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0976       -.47702E-06** at limit **
   2  Prefactor     .10000E-03    3.2689        .39983E-07** at limit **
   3  norm          .10000E-03    17.073        .12864E-05** at limit **
   4  Prefactor     .10000E-03    2.0625        .27080E-07** at limit **
   5  norm          .10000E-03    5.3834       -.27417E-06** at limit **
   6  Prefactor     .10000E-03    4.3496       -.94963E-07** at limit **
   7  Prefactor     4.7957        4.0741        .21631E-06    .42244E-04
   8  Prefactor     .10000E-03    93.093        .49774E-06** at limit **
   9  Prefactor     2.0416        69.888       -.17205E-05   -.41302E-04
  10  Prefactor     .10000E-03    7.9235       -.25538E-06** at limit **
  11  Prefactor     3.6280        7.3478        .51748E-06    .22464E-05
  12  Prefactor     .10000E-03    7.8062        .22805E-06** at limit **
  13  Prefactor     .10000E-03    4.6810        .25076E-06** at limit **
  14  Prefactor     3.2729        2.2527        .54167E-06   -.98689E-04
  15  Prefactor     .10000E-03    30.649        .25754E-05** at limit **
  16  norm          3.1448        1.6879        .19248E-07   -.68966E-04
  17  Prefactor     .10000E-03    2.2215       -.54536E-07** at limit **
  18  Prefactor     .10000E-03    23.091       -.29398E-05** at limit **
  19  Prefactor     .76977        4.0399        .52452E-06    .17638E-04
  20  Prefactor     .27842        3.3782       -.45928E-06    .21523E-03
  21  norm          20.193        5.9320       -.33810E-07   -.92933E-04
  22  Prefactor     17.054        11.276        .19248E-07   -.52813E-05
  23  Prefactor     .10000E-03    2.2191       -.25407E-07** at limit **
  24  Prefactor     .10000E-03    2.2525        .81852E-07** at limit **
  25  Prefactor     .10000E-03    3.3431        .24028E-07** at limit **
  26  norm          1.9283        .44362       -.93785E-08   -.21289E-03
  27  norm          8.6465        5.3166        .37158E-08   -.20030E-04
  28  Prefactor     6.2291        9.8299        .19543E-05   -.37666E-04
  29  Normalizat    .80001        .20919       -.26575E-06   -.51434E-04
  30  Prefactor     1.3100        .22129       -.93167E-06   -.20434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79567
  Prefactor  = 0.0001
  Prefactor  = 2.04164
  Prefactor  = 0.0001
  Prefactor  = 3.62799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.27292
  Prefactor  = 0.000100001
  norm       = 3.1448
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.769772
  Prefactor  = 0.278425
  norm       = 20.1925
  Prefactor  = 17.0541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92835
  norm       = 8.64646
  Prefactor  = 6.22907
  Normalizat = 0.800006
  Prefactor  = 1.31
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.965     FROM HESSE     STATUS=OK           586 CALLS     3918 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3667        .25463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    17.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.0639        .10131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.3965        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3581        .14715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7957        4.0490        .12406E-03   -1.5270    
   8  Prefactor     .10000E-03    93.119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0416        72.558        .28411E-03   -1.5422    
  10  Prefactor     .10000E-03    7.9383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6280        7.2815        .21186E-03   -1.5327    
  12  Prefactor     .10000E-03    7.8175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.6984        .15271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2729        2.2738        .43449E-03   -1.5346    
  15  Prefactor     .10000E-03    31.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.1448        1.6857        .65414E-04   -1.5353    
  17  Prefactor     .10000E-03    2.2334        .10498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    23.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .76977        5.9765        .22146E-02   -1.5532    
  20  Prefactor     .27842        13.689        .20963E-02   -1.5602    
  21  norm          20.193        5.8023        .88904E-04   -1.4809    
  22  Prefactor     17.054        11.277        .96984E-04   -1.4882    
  23  Prefactor     .10000E-03    2.2609        .20934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.8558        .20413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.3572        .12894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.9283        .44328        .22069E-04   -1.5430    
  27  norm          8.6465        5.3123        .12652E-03   -1.5120    
  28  Prefactor     6.2291        9.9129        .80443E-03   -1.5209    
  29  Normalizat    .80001        .24260        .30179E-03   -1.0007    
  30  Prefactor     1.3100        .25805        .27008E-03   -.83010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75432e-10
Minuit parameter uncertainties:
  1  3.24533e-05
  2  9.87375e-06
  3  0.000132869
  4  8.55452e-07
  5  1.06232e-05
  6  5.49637e-06
  7  4.04926
  8  5.26484e-05
  9  24.3737
  10  1.99374e-05
  11  7.28329
  12  1.49433e-05
  13  1.35075e-05
  14  2.2739
  15  0.00034815
  16  1.68568
  17  1.40235e-06
  18  0.00036531
  19  4.29008
  20  3.90484
  21  5.80246
  22  11.2785
  23  9.93847e-07
  24  5.81621e-05
  25  9.32717e-07
  26  0.44328
  27  5.31263
  28  9.91547
  29  0.242924
  30  0.258303
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.494e-05  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.310e+00  2.583e-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:  8.000e-01  2.429e-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: 8.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/75644/likelihoodResults_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.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) = 5217.96608867
delta logL = -0.000606860879088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5217.9654818
delta logL = 8.77935235621e-09

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5217.965     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      264 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.601        .18142E-01** at limit **
   2  Index         2.5414        8.7266        .50000       -.67530E-08
   3  Normalizat    .80001        .17714E-01    .30178E-03    .36617E-04
   4  Prefactor     1.3100        .19862E-01    .27008E-03    .48071E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54139
  Normalizat = 0.800006
  Prefactor  = 1.31
 **********
 **   18 **HESSE 
 **********

 FCN=   5217.965     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      293 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    744.52        .20301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5414        7.3935        .50000       -.51407    
   3  Normalizat    .80001        .55651E-01    .12071E-04   -1.0007    
   4  Prefactor     1.3100        .62399E-01    .10803E-04   -.83010    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.58073e-10
Minuit parameter uncertainties:
  1  0.000265039
  2  1901.08
  3  0.0556548
  4  0.0624029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/75644': 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) = 5217.96548144
delta logL = 3.7322024582e-07

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  2.650e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.541e+00  1.901e+03  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.310e+00  6.240e-02  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:  8.000e-01  5.565e-02  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/75644/cmap_HighResolution_417398401_417657601_4FGL_J1148.5+2629_daily_bin687.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='8.84e-08', time_completed='2021-09-04 11:39:13.447389', job_id='75644', GAL2='1.31', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630780753.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='3.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='687' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 75644: <4FGL_J1148.5+2629_daily_bin687> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin687> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 11:26:25 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:26:27 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:27 2021
Terminated at Sat Sep  4 11:39:14 2021
Results reported at Sat Sep  4 11:39:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin687 177.141 26.4986 417398401 417657601 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            769 sec.

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

