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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin55
RA = 192.46, Dec = 37.1306
tmin = 253584001, tmax = 253843201
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='934357', job_status='RUN', time_executed='2021-09-06 06:26:08.807244', time_epoch_executed='1630934768.81' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934357

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934357/ft1_4FGL_J1249.8+3707_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934357/ft2_4FGL_J1249.8+3707_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934357/ft1_4FGL_J1249.8+3707_daily_bin55.fits outfile=/scratch/kocevski/934357/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin55.fits ra=192.46 dec=37.1306 rad=12.0 tmin=253584001.0 tmax=253843201.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.45
user 1.24
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934357/ft1_filtered_4FGL_J1249.8+3707_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/934357/ft2_4FGL_J1249.8+3707_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/934357/ltcube_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.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/934357/ft2_4FGL_J1249.8+3707_daily_bin55.fits
.....................!
real 12.85
user 12.45
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934357/ft1_filtered_4FGL_J1249.8+3707_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/934357/ft2_4FGL_J1249.8+3707_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/934357/ltcube_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.fits outfile=/scratch/kocevski/934357/expmap_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.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/934357/ltcube_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.fits
.....................!
real 192.12
user 187.46
sys 4.23

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/934357/ft1_filtered_4FGL_J1249.8+3707_daily_bin55.fits scfile=/scratch/kocevski/934357/ft2_4FGL_J1249.8+3707_daily_bin55.fits outfile=/scratch/kocevski/934357/cmap_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.1734       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3716       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3609       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.870       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.217       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7127       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2838       1.0000         .10000E-03   10000.    
    12 'norm      '    2.3016       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.280       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.8659       1.0000         .10000E-03   10000.    
    19 'norm      '    .10900       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10995E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .50396E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.187       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0886       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75564       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=   4646.721     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     3141 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.131       -.20726E-05** at limit **
   2  Prefactor     .10000E-03    8.1318        .10976E-08** at limit **
   3  norm          6.1735        3.1411        .12796E-06   -.64492E-04
   4  Prefactor     .10000E-03    3.0344       -.39770E-07** at limit **
   5  Prefactor     3.3717        2.0760        .38778E-07    .34923E-04
   6  Prefactor     1.3610        2.2486        .90631E-07   -.69043E-03
   7  Prefactor     20.870        11.965       -.84925E-06   -.88299E-04
   8  Prefactor     18.216        23.896        .65767E-05   -.16898E-04
   9  Prefactor     .10000E-03    14.637        .17891E-05** at limit **
  10  Prefactor     7.8418        269.40        .26663E-03    .40012E-04
  11  Prefactor     4.2839        4.1852        .18676E-05    .27162E-04
  12  norm          2.2986        4.9395       -.10858E-04   -.14359E-02
  13  Prefactor     .10000E-03    17.235       -.83271E-05** at limit **
  14  Prefactor     42.262        29.926        .12616E-04   -.18718E-04
  15  Prefactor     .10000E-03    4.5263       -.52982E-07** at limit **
  16  norm          .10000E-03    2.5943       -.31966E-07** at limit **
  17  norm          .10000E-03    5.1254        .74106E-07** at limit **
  18  norm          3.9173        4.6091       -.10376E-05   -.49380E-03
  19  norm          .10578E-03    9.5884        .78823E-07** at limit **
  20  Prefactor     .10000E-03    1.9321        .32024E-07** at limit **
  21  Prefactor     .10000E-03    10.019        .57004E-06** at limit **
  22  Prefactor     .10000E-03    18.694        .86061E-05** at limit **
  23  Prefactor     .10000E-03    5.7631        .37668E-07** at limit **
  24  Prefactor     49.169        74.887       -.30596E-05   -.19606E-04
  25  Normalizat    1.0880        .18790       -.70038E-05    .11037E-03
  26  Prefactor     .75621        .22397       -.34479E-06   -.27581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.17346
  Prefactor  = 0.0001
  Prefactor  = 3.37172
  Prefactor  = 1.36103
  Prefactor  = 20.8705
  Prefactor  = 18.2156
  Prefactor  = 0.0001
  Prefactor  = 7.84178
  Prefactor  = 4.28392
  norm       = 2.29859
  Prefactor  = 0.0001
  Prefactor  = 42.2619
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.91732
  norm       = 0.000105775
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.1685
  Normalizat = 1.08802
  Prefactor  = 0.756205
 **********
 **   18 **HESSE 
 **********

 FCN=   4646.721     FROM HESSE     STATUS=OK           462 CALLS     3603 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.1735        3.1358        .81638E-04   -1.5211    
   4  Prefactor     .10000E-03    3.0474        .11596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.3717        2.0772        .73768E-04   -1.5341    
   6  Prefactor     1.3610        2.2139        .12322E-03   -1.5475    
   7  Prefactor     20.870        11.944        .87676E-04   -1.4794    
   8  Prefactor     18.216        23.892        .93839E-04   -1.4854    
   9  Prefactor     .10000E-03    14.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8418        267.35        .14439E-03   -1.5148    
  11  Prefactor     4.2839        4.1886        .13406E-03   -1.5294    
  12  norm          2.2986        4.9342        .19457E-03   -1.5405    
  13  Prefactor     .10000E-03    17.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     42.262        29.815        .61651E-04   -1.4407    
  15  Prefactor     .10000E-03    4.5295        .14164E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6292        .10719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1285        .15073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9173        4.7127        .12306E-03   -1.5312    
  19  norm          .10578E-03    11.300        .52517E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1381        .17735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    65.868        .39780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7654        .15983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.169        75.190        .57178E-04   -1.4304    
  25  Normalizat    1.0880        .21992        .21332E-03   -.90137    
  26  Prefactor     .75621        .26192        .30889E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10949e-09
Minuit parameter uncertainties:
  1  3.46988e-05
  2  1.53258e-05
  3  3.13584
  4  1.00849e-05
  5  2.07728
  6  2.21403
  7  11.9458
  8  23.9046
  9  2.73348e-05
  10  92.0237
  11  4.1889
  12  4.93504
  13  2.46834e-05
  14  29.8256
  15  8.33778e-06
  16  8.46227e-06
  17  9.13892e-06
  18  4.71318
  19  0.0161594
  20  3.59869e-06
  21  0.000994282
  22  1.87167e-05
  23  7.00189e-06
  24  75.3357
  25  0.220107
  26  0.26235
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.733e-05  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:  7.562e-01  2.624e-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.088e+00  2.201e-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: 4.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934357/likelihoodResults_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.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) = 4646.72163747
delta logL = -0.000324614529745

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4646.72131627
delta logL = -3.40625865647e-06

Fit tolerance = 1e-08

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

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

 FCN=   4646.721     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      230 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1206        .90712E-02** at limit **
   2  Index         1.8650        6.9244        .50000        .11322E-04
   3  Normalizat    1.0880        .24236E-02    .38510E-01    .31826E-04
   4  Prefactor     .75621        .29933E-02    .69804E-01    .28411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86501
  Normalizat = 1.08802
  Prefactor  = 0.756214
 **********
 **   18 **HESSE 
 **********

 FCN=   4646.721     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8650        9.0674        .50000       -.67769    
   3  Normalizat    1.0880        .73852E-02    .21333E-03   -.90137    
   4  Prefactor     .75621        .91069E-02    .30888E-03   -1.0136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.20768e-08
Minuit parameter uncertainties:
  1  0.000249128
  2  64.7027
  3  0.00738519
  4  0.00910696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934357': 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) = 4646.72131306
delta logL = -1.95689608518e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.491e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.865e+00  6.470e+01  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:  7.562e-01  9.107e-03  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.088e+00  7.385e-03  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/934357/cmap_HighResolution_253584001_253843201_4FGL_J1249.8+3707_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-03', job_status='DONE', photon_flux_upper_limit='4.84e-08', time_completed='2021-09-06 06:37:01.301839', job_id='934357', GAL2='0.76', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630935421.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='-1.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='55' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:37:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 934357: <4FGL_J1249.8+3707_daily_bin55> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin55 192.46 37.1306 253584001 253843201 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 :                                   647.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   671 sec.
    Turnaround time :                            673 sec.

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

