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


Performing analysis on: 4FGL_J1148.5+2629_daily_bin92
RA = 177.141, Dec = 26.4986
tmin = 263174401, tmax = 263433601
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='71206', job_status='RUN', time_executed='2021-09-04 11:20:44.424293', time_epoch_executed='1630779644.42' WHERE source_name='4FGL J1148.5+2629' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/71206

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/71206/ft1_4FGL_J1148.5+2629_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/71206/ft2_4FGL_J1148.5+2629_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/71206/ft1_4FGL_J1148.5+2629_daily_bin92.fits outfile=/scratch/kocevski/71206/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin92.fits ra=177.141 dec=26.4986 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.18
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/71206/ft2_4FGL_J1148.5+2629_daily_bin92.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/71206/ft1_filteredMKT_4FGL_J1148.5+2629_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/71206/ft1_filtered_4FGL_J1148.5+2629_daily_bin92.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.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/71206/ft1_filtered_4FGL_J1148.5+2629_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/71206/ft2_4FGL_J1148.5+2629_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/71206/ltcube_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.fits outfile=/scratch/kocevski/71206/expmap_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.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/71206/ltcube_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.fits
.....................!
real 190.69
user 185.65
sys 4.67

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/71206/ft1_filtered_4FGL_J1148.5+2629_daily_bin92.fits scfile=/scratch/kocevski/71206/ft2_4FGL_J1148.5+2629_daily_bin92.fits outfile=/scratch/kocevski/71206/cmap_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.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.58
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/71206/ft1_filtered_4FGL_J1148.5+2629_daily_bin92.fits scfile=/scratch/kocevski/71206/ft2_4FGL_J1148.5+2629_daily_bin92.fits outfile=/scratch/kocevski/71206/cmap_HighResolution_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6248       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3117       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.7848       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.733       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9982       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.4585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.6814       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3216       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4616       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.3270       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8351       1.0000         .10000E-03   10000.    
    26 'norm      '    .92269       1.0000         .10000E-03   10000.    
    27 'norm      '    .21733E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84628       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .96166       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=   4493.818     FROM MIGRAD    STATUS=CONVERGED    743 CALLS     3879 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3939       -.11704E-08** at limit **
   2  Prefactor     .10000E-03    .93965        .26333E-07** at limit **
   3  norm          .10000E-03    7.2225        .47835E-07** at limit **
   4  Prefactor     2.6245        5.3943        .47371E-06    .53491E-04
   5  norm          .10000E-03    6.8012        .12603E-06** at limit **
   6  Prefactor     .10000E-03    3.0019       -.40576E-09** at limit **
   7  Prefactor     1.3103        2.7196       -.16800E-05   -.49989E-03
   8  Prefactor     5.7433        132.10        .12748E-04    .36313E-05
   9  Prefactor     24.735        19.331        .49892E-07    .27020E-04
  10  Prefactor     4.9913        10.782        .28248E-06    .21006E-04
  11  Prefactor     .10000E-03    2.1159       -.41823E-07** at limit **
  12  Prefactor     .10000E-03    4.6685        .46997E-08** at limit **
  13  Prefactor     .10000E-03    7.9884       -.40909E-07** at limit **
  14  Prefactor     4.7117        2.2125       -.31011E-08   -.48302E-04
  15  Prefactor     .10000E-03    27.612       -.26130E-06** at limit **
  16  norm          3.4582        1.5602       -.46972E-08   -.41638E-04
  17  Prefactor     5.6798        4.8793        .14817E-06   -.14521E-03
  18  Prefactor     .10000E-03    24.718        .16001E-06** at limit **
  19  Prefactor     .10000E-03    2.2111        .56131E-06** at limit **
  20  Prefactor     .10000E-03    1.5384        .24218E-07** at limit **
  21  norm          4.0438        4.3775        .15786E-06    .57513E-05
  22  Prefactor     6.3204        9.2371        .19059E-06    .15574E-04
  23  Prefactor     2.4615        2.5938       -.54649E-07   -.36313E-04
  24  Prefactor     8.3277        3.5829       -.31385E-07   -.28457E-03
  25  Prefactor     5.8374        5.9838        .83449E-07   -.23518E-03
  26  norm          .92270        .33820        .76496E-08   -.10468E-02
  27  norm          .10001E-03    5.8370        .15690E-05** at limit **
  28  Prefactor     .10000E-03    9.5862       -.62217E-07** at limit **
  29  Normalizat    .84628        .19898        .28003E-06   -.15407E-03
  30  Prefactor     .96169        .21837       -.36344E-06   -.14905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.62452
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.31025
  Prefactor  = 5.74328
  Prefactor  = 24.7355
  Prefactor  = 4.99133
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71168
  Prefactor  = 0.0001
  norm       = 3.45824
  Prefactor  = 5.67976
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.04379
  Prefactor  = 6.32039
  Prefactor  = 2.46153
  Prefactor  = 8.32766
  Prefactor  = 5.83743
  norm       = 0.922697
  norm       = 0.000100012
  Prefactor  = 0.0001
  Normalizat = 0.846282
  Prefactor  = 0.961694
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.818     FROM HESSE     STATUS=OK           592 CALLS     4471 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.4028        .13722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .94671        .63437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.2438        .17595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6245        5.3843        .21540E-03   -1.5384    
   5  norm          .10000E-03    6.8287        .17063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.0048        .11343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3103        2.7933        .12828E-03   -1.5479    
   8  Prefactor     5.7433        136.68        .16699E-03   -1.5229    
   9  Prefactor     24.735        19.296        .80546E-04   -1.4713    
  10  Prefactor     4.9913        10.748        .17987E-03   -1.5261    
  11  Prefactor     .10000E-03    2.1306        .95184E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.6703        .14146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.0626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7117        2.2118        .65742E-04   -1.5274    
  15  Prefactor     .10000E-03    27.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.4582        1.5582        .53719E-04   -1.5336    
  17  Prefactor     5.6798        4.8035        .12762E-03   -1.5231    
  18  Prefactor     .10000E-03    24.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.7376        .18348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5476        .81131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0438        4.3532        .12854E-03   -1.5306    
  22  Prefactor     6.3204        9.2350        .15965E-03   -1.5205    
  23  Prefactor     2.4615        2.5881        .10101E-03   -1.5394    
  24  Prefactor     8.3277        3.5713        .76257E-04   -1.5131    
  25  Prefactor     5.8374        5.9030        .15750E-03   -1.5225    
  26  norm          .92270        .33681        .22342E-04   -1.5516    
  27  norm          .10001E-03    11.557        .27196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    9.6371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .84628        .22693        .25147E-03   -.98374    
  30  Prefactor     .96169        .24931        .26849E-03   -.94017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38804e-09
Minuit parameter uncertainties:
  1  3.00804e-06
  2  2.59841e-07
  3  8.00919e-06
  4  5.38531
  5  1.11318e-05
  6  1.24993e-06
  7  2.79361
  8  56.1806
  9  19.301
  10  10.7521
  11  7.01029e-07
  12  1.32842e-06
  13  1.2372e-05
  14  2.21184
  15  7.99178e-05
  16  1.55822
  17  4.80386
  18  6.22621e-05
  19  8.75536e-05
  20  2.16039e-06
  21  4.35353
  22  9.23708
  23  2.58817
  24  3.57144
  25  5.90358
  26  0.336813
  27  0.000743489
  28  2.16177e-05
  29  0.227184
  30  0.24961
Done.

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

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  1.328e-06  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:  9.617e-01  2.496e-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.463e-01  2.272e-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: 6.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/71206/likelihoodResults_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.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) = 4493.81875837
delta logL = -0.00100527584982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4493.81775306
delta logL = 3.75412128051e-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.9144       1.0000          .0000       10.000    
     3 'Normalizat'    .84628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96169       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=   4493.818     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      245 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    59.797        .14195E-01** at limit **
   2  Index         2.4335        6.1883        .50000        .21489E-06
   3  Normalizat    .84628        .16339E-01    .25147E-03    .20706E-04
   4  Prefactor     .96169        .18591E-01    .26849E-03    .24601E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4335
  Normalizat = 0.846282
  Prefactor  = 0.961694
 **********
 **   18 **HESSE 
 **********

 FCN=   4493.818     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    475.00        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4335        5.2630        .50000       -.53903    
   3  Normalizat    .84628        .51818E-01    .10059E-04   -.98374    
   4  Prefactor     .96169        .58959E-01    .10740E-04   -.94017    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71573e-09
Minuit parameter uncertainties:
  1  0.000410897
  2  1617.18
  3  0.0518213
  4  0.0589628
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/71206': 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) = 4493.81775205
delta logL = 1.05051094579e-06

Extracting fit parameters...

4FGL J1148.5+2629
   Spectrum: PowerLaw
287    Prefactor:  1.000e-04  4.109e-04  1.000e-04  1.000e+04 ( 1.000e-12)
288        Index:  2.433e+00  1.617e+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:  9.617e-01  5.896e-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.463e-01  5.182e-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/71206/cmap_HighResolution_263174401_263433601_4FGL_J1148.5+2629_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.01e-08', time_completed='2021-09-04 11:32:55.743180', job_id='71206', GAL2='0.96', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630780375.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.92' WHERE bin_id='92' AND source_name='4FGL J1148.5+2629' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 11:32:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 71206: <4FGL_J1148.5+2629_daily_bin92> in cluster <slac> Done

Job <4FGL_J1148.5+2629_daily_bin92> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 11:16:56 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 11:16:57 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:16:57 2021
Terminated at Sat Sep  4 11:32:56 2021
Results reported at Sat Sep  4 11:32:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1148.5+2629_daily_bin92 177.141 26.4986 263174401 263433601 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 :                                   730.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

