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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin643
RA = 192.46, Dec = 37.1306
tmin = 405993601, tmax = 406252801
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='937368', job_status='RUN', time_executed='2021-09-06 06:38:50.139636', time_epoch_executed='1630935530.14' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='643'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937368

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937368/ft1_4FGL_J1249.8+3707_daily_bin643.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937368/ft1_4FGL_J1249.8+3707_daily_bin643.fits outfile=/scratch/kocevski/937368/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin643.fits ra=192.46 dec=37.1306 rad=12.0 tmin=405993601.0 tmax=406252801.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.44
user 3.21
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.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/937368/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin643.fits evtable="EVENTS" outfile="/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits" evtable="EVENTS" scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits sctable="SC_DATA" outfile=/scratch/kocevski/937368/ltcube_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.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/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits
.....................!
real 13.19
user 12.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits sctable="SC_DATA" expcube=/scratch/kocevski/937368/ltcube_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits outfile=/scratch/kocevski/937368/expmap_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.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/937368/ltcube_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits
.....................!
real 192.86
user 187.11
sys 4.88

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 J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits outfile=/scratch/kocevski/937368/cmap_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.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=192.46 yref=37.1306 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.60
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits outfile=/scratch/kocevski/937368/cmap_HighResolution_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.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=192.46 yref=37.1306 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.61
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits evtable="EVENTS" scfile=/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/937368/Model_4FGL_J1249.8+3707_daily_bin643.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/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits.....................!
real 47.30
user 45.68
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits', '/scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits', expMap='/scratch/kocevski/937368/expmap_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits', expCube='/scratch/kocevski/937368/ltcube_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/937368/Model_4FGL_J1249.8+3707_daily_bin643.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/937368/ft1_filtered_4FGL_J1249.8+3707_daily_bin643.fits
Spacecraft file(s): /scratch/kocevski/937368/ft2_4FGL_J1249.8+3707_daily_bin643.fits
Exposure map: /scratch/kocevski/937368/expmap_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits
Exposure cube: /scratch/kocevski/937368/ltcube_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/937368/Model_4FGL_J1249.8+3707_daily_bin643.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) = 5507.47291297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.392       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11037E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.744       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.800       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9041       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.874       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.9503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .70709E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8697       1.0000         .10000E-03   10000.    
    17 'norm      '    10.450       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9118       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.8218       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91339       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5507.450     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2638 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.377        48.213       -.14775E-04    .17587E-05
   2  Prefactor     .10000E-03    40.329       -.24591E-05** at limit **
   3  norm          12.742        4.6464       -.19385E-06   -.12125E-03
   4  Prefactor     11.804        8.8017       -.35114E-06   -.17161E-04
   5  Prefactor     .10000E-03    1.6301        .13523E-06** at limit **
   6  Prefactor     1.9047        2.7482       -.76915E-07   -.62683E-03
   7  Prefactor     10.874        12.584       -.16801E-05   -.11174E-02
   8  Prefactor     12.469        14.837        .20538E-07    .52805E-04
   9  Prefactor     .10000E-03    6.2310        .45117E-07** at limit **
  10  Prefactor     .10000E-03    90.051        .11443E-04** at limit **
  11  Prefactor     .10000E-03    1.7179        .21543E-07** at limit **
  12  norm          8.9502        5.1060       -.11256E-07   -.32217E-04
  13  Prefactor     .10002E-03    248.87       -.13047E-03** at limit **
  14  Prefactor     2.5348        28.099       -.19268E-05   -.85438E-04
  15  Prefactor     .10000E-03    5.5569       -.56194E-08** at limit **
  16  norm          1.8698        3.6455       -.42623E-06   -.47605E-03
  17  norm          10.443        12.531       -.78903E-06    .21505E-03
  18  norm          .10000E-03    1.6113        .88221E-08** at limit **
  19  norm          .10000E-03    3.8866       -.44003E-09** at limit **
  20  Prefactor     2.9121        3.5295       -.24971E-07   -.26136E-03
  21  Prefactor     6.8243        16.271       -.86163E-06   -.53568E-04
  22  Prefactor     .10000E-03    19.304        .55367E-06** at limit **
  23  Prefactor     .10000E-03    13.672       -.26294E-06** at limit **
  24  Prefactor     .10000E-03    91.818        .16082E-05** at limit **
  25  Normalizat    .91322        .17666        .11797E-05    .37177E-03
  26  Prefactor     1.1593        .22397        .82315E-06    .34640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.3767
  Prefactor  = 0.0001
  norm       = 12.7425
  Prefactor  = 11.8039
  Prefactor  = 0.0001
  Prefactor  = 1.90474
  Prefactor  = 10.874
  Prefactor  = 12.4688
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.95017
  Prefactor  = 0.000100017
  Prefactor  = 2.53483
  Prefactor  = 0.0001
  norm       = 1.86979
  norm       = 10.4425
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.91213
  Prefactor  = 6.8243
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.91322
  Prefactor  = 1.15932
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.450     FROM HESSE     STATUS=OK           450 CALLS     3088 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.377        48.260        .61571E-04   -1.4405    
   2  Prefactor     .10000E-03    40.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.742        4.4693        .87636E-04   -1.4994    
   4  Prefactor     11.804        8.8045        .11662E-03   -1.5021    
   5  Prefactor     .10000E-03    2.5023        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.9047        2.7125        .13472E-03   -1.5432    
   7  Prefactor     10.874        12.682        .60748E-03   -1.5048    
   8  Prefactor     12.469        14.839        .11344E-03   -1.5002    
   9  Prefactor     .10000E-03    6.2329        .18093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7206        .94987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.9502        5.0881        .11915E-03   -1.5110    
  13  Prefactor     .10002E-03    246.02        .20974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5348        27.851        .25663E-03   -1.5390    
  15  Prefactor     .10000E-03    5.5649        .17084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8698        3.6158        .19074E-03   -1.5434    
  17  norm          10.443        12.523        .12395E-03   -1.5062    
  18  norm          .10000E-03    1.6344        .91881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.9784        .14280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.9121        3.4873        .12403E-03   -1.5367    
  21  Prefactor     6.8243        16.119        .15362E-03   -1.5185    
  22  Prefactor     .10000E-03    19.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    92.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91322        .20932        .24520E-03   -.95997    
  26  Prefactor     1.1593        .26534        .28359E-03   -.87593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67352e-09
Minuit parameter uncertainties:
  1  48.3044
  2  6.04234e-07
  3  4.46942
  4  8.80543
  5  1.78911e-05
  6  2.71267
  7  12.6848
  8  14.8432
  9  1.75507e-06
  10  7.18912e-05
  11  4.05203e-07
  12  5.08831
  13  0.0041454
  14  16.8141
  15  7.16421e-07
  16  3.61619
  17  12.5261
  18  4.408e-07
  19  3.92109e-07
  20  3.48751
  21  16.1293
  22  1.86205e-06
  23  1.33376e-05
  24  0.000114086
  25  0.209502
  26  0.265642
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.755e-06  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.159e+00  2.656e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.132e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 3.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937368/likelihoodResults_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.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) = 5507.45112301
delta logL = -0.000757426871132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5507.45036655
delta logL = -9.63928869169e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11783E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7446       1.0000          .0000       10.000    
     3 'Normalizat'    .91325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1593       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   5507.450     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      241 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10171E-03    41.668        .18142E-02** at limit **
   2  Index         1.6809        7.7854        .50000        .34784E-04
   3  Normalizat    .91322        .10510E-01    .24519E-03   -.34311E-05
   4  Prefactor     1.1593        .13578E-01    .28359E-03   -.34115E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101713
  Index      = 1.68087
  Normalizat = 0.913221
  Prefactor  = 1.15931
 **********
 **   18 **HESSE 
 **********

 FCN=   5507.450     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .50E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10171E-03    187.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6809        6.2107        .50000       -.72592    
   3  Normalizat    .91322        .22856E-01    .98078E-05   -.95997    
   4  Prefactor     1.1593        .29527E-01    .11344E-04   -.87593    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.01994e-08
Minuit parameter uncertainties:
  1  0.0359532
  2  290.305
  3  0.0228562
  4  0.0295269
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937368': 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) = 5507.45036467
delta logL = 9.16691533348e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.017e-04  3.595e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.681e+00  2.903e+02  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.159e+00  2.953e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  9.132e-01  2.286e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/937368/cmap_HighResolution_405993601_406252801_4FGL_J1249.8+3707_daily_bin643.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-03', job_status='DONE', photon_flux_upper_limit='3.16e-08', time_completed='2021-09-06 06:50:26.650036', job_id='937368', GAL2='1.16', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630936226.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='9.17e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='643' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 937368: <4FGL_J1249.8+3707_daily_bin643> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin643> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:45 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:35:46 2021
Terminated at Mon Sep  6 06:50:27 2021
Results reported at Mon Sep  6 06:50:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin643 192.46 37.1306 405993601 406252801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   694.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

