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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin216
RA = 192.46, Dec = 37.1306
tmin = 295315201, tmax = 295574401
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='935640', job_status='RUN', time_executed='2021-09-06 06:33:36.083213', time_epoch_executed='1630935216.08' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='216'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935640/ft1_4FGL_J1249.8+3707_daily_bin216.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935640/ft1_4FGL_J1249.8+3707_daily_bin216.fits outfile=/scratch/kocevski/935640/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin216.fits ra=192.46 dec=37.1306 rad=12.0 tmin=295315201.0 tmax=295574401.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 2.37
user 2.16
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935640/ft1_filtered_4FGL_J1249.8+3707_daily_bin216.fits evtable="EVENTS" scfile=/scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits sctable="SC_DATA" expcube=/scratch/kocevski/935640/ltcube_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits outfile=/scratch/kocevski/935640/expmap_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.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/935640/ltcube_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits
.....................!
real 191.56
user 186.47
sys 4.72

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/935640/ft1_filtered_4FGL_J1249.8+3707_daily_bin216.fits scfile=/scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits outfile=/scratch/kocevski/935640/cmap_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935640/ft1_filtered_4FGL_J1249.8+3707_daily_bin216.fits scfile=/scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits outfile=/scratch/kocevski/935640/cmap_HighResolution_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935640/ft1_filtered_4FGL_J1249.8+3707_daily_bin216.fits', '/scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits', expMap='/scratch/kocevski/935640/expmap_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits', expCube='/scratch/kocevski/935640/ltcube_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935640/Model_4FGL_J1249.8+3707_daily_bin216.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/935640/ft1_filtered_4FGL_J1249.8+3707_daily_bin216.fits
Spacecraft file(s): /scratch/kocevski/935640/ft2_4FGL_J1249.8+3707_daily_bin216.fits
Exposure map: /scratch/kocevski/935640/expmap_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits
Exposure cube: /scratch/kocevski/935640/ltcube_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935640/Model_4FGL_J1249.8+3707_daily_bin216.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) = 5374.12301012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.748       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0695       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2461       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.0905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16910E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.535       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10581E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9524       1.0000         .10000E-03   10000.    
    12 'norm      '    4.3554       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.197       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.080       1.0000         .10000E-03   10000.    
    16 'norm      '    4.5325       1.0000         .10000E-03   10000.    
    17 'norm      '    20.658       1.0000         .10000E-03   10000.    
    18 'norm      '    .10379E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.807       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5195       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7051       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.1696       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3191       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0293       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=   5374.039     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3102 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.694        .33208E-06** at limit **
   2  Prefactor     12.715        20.853        .29791E-06    .44053E-04
   3  norm          4.0695        2.9327        .12996E-07    .20613E-04
   4  Prefactor     2.2457        4.6242        .63294E-06    .53363E-04
   5  Prefactor     5.0903        2.8762       -.27826E-07    .17916E-04
   6  Prefactor     .10000E-03    1.2203       -.21841E-06** at limit **
   7  Prefactor     20.527        10.848       -.20021E-06    .71929E-05
   8  Prefactor     .10000E-03    14.559        .32122E-06** at limit **
   9  Prefactor     .10000E-03    7.4876        .91278E-07** at limit **
  10  Prefactor     .10000E-03    32.051        .18163E-06** at limit **
  11  Prefactor     2.9536        5.4173        .68858E-06    .49728E-04
  12  norm          4.3641        5.2370        .21598E-06    .11770E-04
  13  Prefactor     .10000E-03    24.354        .13352E-06** at limit **
  14  Prefactor     18.101        32.761       -.89879E-06   -.11166E-04
  15  Prefactor     11.075        24.517       -.19525E-05   -.84661E-05
  16  norm          4.5337        6.2383        .11051E-06    .12162E-04
  17  norm          20.668        17.336        .14834E-06   -.40156E-04
  18  norm          .10000E-03    3.9243       -.88123E-08** at limit **
  19  norm          15.806        7.8661        .26636E-07   -.58227E-06
  20  Prefactor     5.5202        3.9856        .11782E-05    .44919E-03
  21  Prefactor     .10000E-03    5.0329       -.62730E-07** at limit **
  22  Prefactor     4.7012        152.52       -.64773E-05   -.91114E-05
  23  Prefactor     6.1622        15.734       -.10052E-06    .10442E-04
  24  Prefactor     2.1728        695.48       -.36243E-04   -.16874E-04
  25  Normalizat    1.0028        .20386        .38458E-05   -.26950E-03
  26  Prefactor     1.0293        .24815       -.64514E-05    .26336E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.7154
  norm       = 4.06951
  Prefactor  = 2.2457
  Prefactor  = 5.0903
  Prefactor  = 0.000100002
  Prefactor  = 20.5269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.95358
  norm       = 4.3641
  Prefactor  = 0.0001
  Prefactor  = 18.1015
  Prefactor  = 11.0748
  norm       = 4.5337
  norm       = 20.6679
  norm       = 0.0001
  norm       = 15.8056
  Prefactor  = 5.52017
  Prefactor  = 0.0001
  Prefactor  = 4.70119
  Prefactor  = 6.16215
  Prefactor  = 2.17278
  Normalizat = 1.00283
  Prefactor  = 1.02927
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.039     FROM HESSE     STATUS=OK           468 CALLS     3570 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.715        20.873        .11219E-03   -1.4995    
   3  norm          4.0695        2.9384        .97491E-04   -1.5304    
   4  Prefactor     2.2457        4.6039        .21974E-03   -1.5408    
   5  Prefactor     5.0903        2.8828        .85279E-04   -1.5257    
   6  Prefactor     .10000E-03    5.0721        .15391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.527        10.789        .88388E-04   -1.4802    
   8  Prefactor     .10000E-03    14.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.4927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    32.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9536        5.3797        .21423E-03   -1.5364    
  12  norm          4.3641        5.2033        .15244E-03   -1.5290    
  13  Prefactor     .10000E-03    24.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.101        32.551        .93890E-04   -1.4857    
  15  Prefactor     11.075        24.345        .12036E-03   -1.5042    
  16  norm          4.5337        6.1968        .18910E-03   -1.5282    
  17  norm          20.668        17.346        .88123E-04   -1.4798    
  18  norm          .10000E-03    3.9690        .28067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.806        7.7999        .10074E-03   -1.4913    
  20  Prefactor     5.5202        4.0860        .57375E-03   -1.5238    
  21  Prefactor     .10000E-03    5.0394        .16060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.7012        152.27        .18551E-03   -1.5274    
  23  Prefactor     6.1622        15.746        .16163E-03   -1.5211    
  24  Prefactor     2.1728        733.04        .26937E-02   -1.5413    
  25  Normalizat    1.0028        .22644        .23703E-03   -.92936    
  26  Prefactor     1.0293        .26964        .29576E-03   -.91760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07652e-09
Minuit parameter uncertainties:
  1  3.47247e-05
  2  20.8853
  3  2.93852
  4  4.60464
  5  2.88292
  6  0.000221747
  7  10.7901
  8  1.16556e-05
  9  4.03946e-06
  10  4.6189e-06
  11  5.38056
  12  5.20382
  13  2.52759e-05
  14  32.5827
  15  24.3666
  16  6.1977
  17  17.3505
  18  7.41167e-06
  19  7.8004
  20  4.08622
  21  4.48824e-06
  22  53.6591
  23  15.7562
  24  80.8344
  25  0.226658
  26  0.269991
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.039e-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.029e+00  2.700e-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:  1.003e+00  2.267e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935640/likelihoodResults_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.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) = 5374.0397916
delta logL = -0.000629527796264

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5374.03916197
delta logL = 1.03969796328e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7516       1.0000          .0000       10.000    
     3 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0294       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=   5374.039     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10091E-03    45.534        .18142E-02** at limit **
   2  Index         1.7048        7.7470        .50000        .23094E-04
   3  Normalizat    1.0028        .10530E-01    .23702E-03   -.47964E-06
   4  Prefactor     1.0293        .13350E-01    .29577E-03   -.23063E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100906
  Index      = 1.70481
  Normalizat = 1.00283
  Prefactor  = 1.02927
 **********
 **   18 **HESSE 
 **********

 FCN=   5374.039     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10091E-03    209.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7048        8.3519        .50000       -.71954    
   3  Normalizat    1.0028        .23161E-01    .94809E-05   -.92936    
   4  Prefactor     1.0293        .29360E-01    .11831E-04   -.91760    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88868e-08
Minuit parameter uncertainties:
  1  0.0276626
  2  295.468
  3  0.023161
  4  0.0293608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935640': 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) = 5374.03916161
delta logL = 4.58319846075e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.009e-04  2.766e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.705e+00  2.955e+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.029e+00  2.936e-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:  1.003e+00  2.316e-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/935640/cmap_HighResolution_295315201_295574401_4FGL_J1249.8+3707_daily_bin216.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-03', job_status='DONE', photon_flux_upper_limit='3.48e-08', time_completed='2021-09-06 06:45:23.154009', job_id='935640', GAL2='1.03', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630935923.15', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='216' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 935640: <4FGL_J1249.8+3707_daily_bin216> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin216> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:39 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:42 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:30:42 2021
Terminated at Mon Sep  6 06:45:26 2021
Results reported at Mon Sep  6 06:45:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin216 192.46 37.1306 295315201 295574401 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 :                                   702.04 sec.
    Max Memory :                                 1178 MB
    Average Memory :                             300.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            887 sec.

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

