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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin623
RA = 192.46, Dec = 37.1306
tmin = 400809601, tmax = 401068801
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='937340', job_status='RUN', time_executed='2021-09-06 06:38:19.307839', time_epoch_executed='1630935499.31' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='623'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937340

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937340/ft1_4FGL_J1249.8+3707_daily_bin623.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937340/ft1_4FGL_J1249.8+3707_daily_bin623.fits outfile=/scratch/kocevski/937340/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin623.fits ra=192.46 dec=37.1306 rad=12.0 tmin=400809601.0 tmax=401068801.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.40
user 3.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.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/937340/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin623.fits evtable="EVENTS" outfile="/scratch/kocevski/937340/ft1_filtered_4FGL_J1249.8+3707_daily_bin623.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.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937340/ft1_filtered_4FGL_J1249.8+3707_daily_bin623.fits" evtable="EVENTS" scfile=/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits sctable="SC_DATA" outfile=/scratch/kocevski/937340/ltcube_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.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/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits
.....................!
real 13.20
user 12.83
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937340/ft1_filtered_4FGL_J1249.8+3707_daily_bin623.fits evtable="EVENTS" scfile=/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits sctable="SC_DATA" expcube=/scratch/kocevski/937340/ltcube_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.fits outfile=/scratch/kocevski/937340/expmap_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.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/937340/ltcube_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.fits
.....................!
real 191.65
user 186.37
sys 4.56

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/937340/ft1_filtered_4FGL_J1249.8+3707_daily_bin623.fits scfile=/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits outfile=/scratch/kocevski/937340/cmap_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937340/ft1_filtered_4FGL_J1249.8+3707_daily_bin623.fits scfile=/scratch/kocevski/937340/ft2_4FGL_J1249.8+3707_daily_bin623.fits outfile=/scratch/kocevski/937340/cmap_HighResolution_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.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.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34840       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23690E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    88.393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2568       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.214       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    33.373       1.0000         .10000E-03   10000.    
    18 'norm      '    7.8503       1.0000         .10000E-03   10000.    
    19 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25109E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4552       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.908       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.0929       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96592       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93247       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=   5436.588     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3076 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.699       -.73988E-07** at limit **
   2  Prefactor     .10000E-03    57.568       -.12017E-06** at limit **
   3  norm          8.7854        3.7793       -.18206E-08   -.10058E-03
   4  Prefactor     .10000E-03    4.2714       -.31362E-07** at limit **
   5  Prefactor     .34786        1.3239        .11925E-06   -.18057E-03
   6  Prefactor     2.8312        2.8689        .14304E-06    .27215E-04
   7  Prefactor     .10001E-03    8.4583        .25596E-05** at limit **
   8  Prefactor     .10000E-03    18.301        .27390E-07** at limit **
   9  Prefactor     1.7255        14.583        .73285E-05   -.42065E-03
  10  Prefactor     88.385        65.038        .22006E-06   -.38601E-04
  11  Prefactor     7.2576        4.9917       -.20633E-06    .19973E-03
  12  norm          .10000E-03    .97797       -.83845E-07** at limit **
  13  Prefactor     19.216        35.316       -.79787E-08    .21212E-04
  14  Prefactor     .10000E-03    4.9252       -.12506E-06** at limit **
  15  Prefactor     .10000E-03    4.9529       -.11453E-07** at limit **
  16  norm          .10000E-03    1.6296        .67471E-08** at limit **
  17  norm          33.375        18.983        .42174E-07    .35215E-04
  18  norm          7.8534        4.0183       -.41008E-06   -.34875E-03
  19  norm          .10000E-03    5.2064       -.41045E-06** at limit **
  20  Prefactor     .10000E-03    2.1396       -.94790E-06** at limit **
  21  Prefactor     3.4980        17.277        .55583E-05    .49124E-03
  22  Prefactor     18.928        44.917       -.24279E-07    .23997E-03
  23  Prefactor     .10000E-03    5.5644       -.14536E-06** at limit **
  24  Prefactor     7.0919        114.17        .23260E-06    .14464E-04
  25  Normalizat    .96604        .17276        .15490E-05    .44965E-03
  26  Prefactor     .93226        .21556       -.20821E-05    .18007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.78543
  Prefactor  = 0.0001
  Prefactor  = 0.347862
  Prefactor  = 2.83116
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 1.72554
  Prefactor  = 88.3855
  Prefactor  = 7.25764
  norm       = 0.0001
  Prefactor  = 19.216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 33.375
  norm       = 7.85337
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 3.49801
  Prefactor  = 18.9284
  Prefactor  = 0.0001
  Prefactor  = 7.09187
  Normalizat = 0.966039
  Prefactor  = 0.932261
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.588     FROM HESSE     STATUS=OK           456 CALLS     3532 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7854        3.7847        .83345E-04   -1.5115    
   4  Prefactor     .10000E-03    4.3253        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .34786        1.4510        .14839E-02   -1.5590    
   6  Prefactor     2.8312        2.7860        .11373E-03   -1.5371    
   7  Prefactor     .10001E-03    29.951        .37112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7255        15.833        .15988E-02   -1.5445    
  10  Prefactor     88.385        65.035        .42735E-04   -1.3825    
  11  Prefactor     7.2576        4.9981        .13129E-03   -1.5169    
  12  norm          .10000E-03    .97946        .71214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.216        35.309        .91372E-04   -1.4831    
  14  Prefactor     .10000E-03    4.9267        .15981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9630        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6338        .91892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          33.375        18.985        .69364E-04   -1.4552    
  18  norm          7.8534        3.9733        .96490E-04   -1.5147    
  19  norm          .10000E-03    5.2294        .16313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1474        .19039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.4980        18.445        .21757E-03   -1.5334    
  22  Prefactor     18.928        44.428        .92109E-04   -1.4838    
  23  Prefactor     .10000E-03    5.5710        .16988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     7.0919        114.46        .15062E-03   -1.5175    
  25  Normalizat    .96604        .20296        .22126E-03   -.94177    
  26  Prefactor     .93226        .25167        .28485E-03   -.95023    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75541e-08
Minuit parameter uncertainties:
  1  8.71696e-05
  2  0.000256169
  3  3.78482
  4  1.15991e-05
  5  1.42076
  6  2.78618
  7  0.0010987
  8  0.00015508
  9  10.4572
  10  65.0878
  11  4.99839
  12  5.72487e-06
  13  35.3478
  14  1.77476e-05
  15  1.15534e-05
  16  1.8046e-07
  17  18.9884
  18  3.97347
  19  0.000132012
  20  0.000168973
  21  16.0725
  22  44.5059
  23  1.59964e-05
  24  57.112
  25  0.203121
  26  0.251988
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.726e+00  1.046e+01  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:  9.323e-01  2.520e-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.660e-01  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937340/likelihoodResults_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.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): 0
logL (Free Index) = 5436.58691353
delta logL = 0.00107594772453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.58676694
delta logL = 0.00122253122936

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5683       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8655       1.0000          .0000       10.000    
     3 'Normalizat'    .96608       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93195       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=   5436.587     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      255 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5658        20.198        .33953E-03    .12389E-04
   2  Index         1.8644        1.8355        .13035E-01    .80101E-05
   3  Normalizat    .96596        .19551        .22127E-03   -.37982E-03
   4  Prefactor     .93222        .24935        .28486E-03   -.43042E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56577
  Index      = 1.86436
  Normalizat = 0.96596
  Prefactor  = 0.932218
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.587     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5658        16.269        .13581E-04   -1.5458    
   2  Index         1.8644        1.6636        .52139E-03   -.67786    
   3  Normalizat    .96596        .19565        .44253E-04   -.94180    
   4  Prefactor     .93222        .24953        .56972E-04   -.95024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53338e-10
Minuit parameter uncertainties:
  1  10.0975
  2  1.71883
  3  0.195799
  4  0.249835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937340': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5436.58676574
delta logL = 0.00122373036902

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.566e+00  1.010e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.864e+00  1.719e+00  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:  9.322e-01  2.498e-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.660e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/937340/cmap_HighResolution_400809601_401068801_4FGL_J1249.8+3707_daily_bin623.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-03', job_status='DONE', photon_flux_upper_limit='3.49e-08', time_completed='2021-09-06 06:50:25.046895', job_id='937340', GAL2='0.93', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630936225.05', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.22e-03', ts2='0.03', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='623' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 937340: <4FGL_J1249.8+3707_daily_bin623> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin623> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:43 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:45 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:45 2021
Terminated at Mon Sep  6 06:50:25 2021
Results reported at Mon Sep  6 06:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin623 192.46 37.1306 400809601 401068801 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.89 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.

