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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin800
RA = 192.46, Dec = 37.1306
tmin = 446688001, tmax = 446947201
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='938728', job_status='RUN', time_executed='2021-09-06 06:43:29.753844', time_epoch_executed='1630935809.75' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='800'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938728/ft1_4FGL_J1249.8+3707_daily_bin800.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938728/ft2_4FGL_J1249.8+3707_daily_bin800.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938728/ft1_4FGL_J1249.8+3707_daily_bin800.fits outfile=/scratch/kocevski/938728/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin800.fits ra=192.46 dec=37.1306 rad=12.0 tmin=446688001.0 tmax=446947201.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.39
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938728/ft1_filtered_4FGL_J1249.8+3707_daily_bin800.fits" evtable="EVENTS" scfile=/scratch/kocevski/938728/ft2_4FGL_J1249.8+3707_daily_bin800.fits sctable="SC_DATA" outfile=/scratch/kocevski/938728/ltcube_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.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/938728/ft2_4FGL_J1249.8+3707_daily_bin800.fits
.....................!
real 12.23
user 11.88
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938728/ft1_filtered_4FGL_J1249.8+3707_daily_bin800.fits evtable="EVENTS" scfile=/scratch/kocevski/938728/ft2_4FGL_J1249.8+3707_daily_bin800.fits sctable="SC_DATA" expcube=/scratch/kocevski/938728/ltcube_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.fits outfile=/scratch/kocevski/938728/expmap_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.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/938728/ltcube_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.fits
.....................!
real 190.87
user 186.52
sys 3.95

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/938728/ft1_filtered_4FGL_J1249.8+3707_daily_bin800.fits scfile=/scratch/kocevski/938728/ft2_4FGL_J1249.8+3707_daily_bin800.fits outfile=/scratch/kocevski/938728/cmap_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.163       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .61049       1.0000         .10000E-03   10000.    
     8 'Prefactor '    42.669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0363       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.2926       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8793       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15987E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.0080       1.0000         .10000E-03   10000.    
    18 'norm      '    .20115E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1348       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.544       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    105.87       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73887       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=   5597.206     FROM MIGRAD    STATUS=CONVERGED    652 CALLS     3209 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.667        49.790        .16831E-05    .97591E-05
   2  Prefactor     .10000E-03    81.712       -.98346E-05** at limit **
   3  norm          13.163        3.8300       -.48844E-07    .25336E-03
   4  Prefactor     .10000E-03    2.4482       -.11271E-06** at limit **
   5  Prefactor     .10000E-03    .70321       -.11373E-07** at limit **
   6  Prefactor     2.0962        1.8093       -.66084E-07    .88109E-05
   7  Prefactor     .61110        1.7845        .30274E-05   -.11373E-02
   8  Prefactor     42.674        24.811        .12930E-06    .11684E-04
   9  Prefactor     8.0347        11.757       -.14154E-06   -.13800E-04
  10  Prefactor     .10003E-03    278.30        .23767E-04** at limit **
  11  Prefactor     .10000E-03    2.4667       -.37896E-06** at limit **
  12  norm          5.2992        5.4253        .10289E-05   -.45651E-04
  13  Prefactor     .10000E-03    19.154        .13871E-06** at limit **
  14  Prefactor     4.8016        37.803        .51170E-06   -.80159E-04
  15  Prefactor     .10000E-03    70.828       -.38006E-04** at limit **
  16  norm          .10003E-03    2.5421        .58856E-06** at limit **
  17  norm          6.0078        7.2321       -.14419E-06   -.27276E-05
  18  norm          .10002E-03    2.5559        .49577E-06** at limit **
  19  norm          8.0678        5.8559        .24775E-05    .74050E-03
  20  Prefactor     3.1353        2.5969        .50302E-06    .58333E-03
  21  Prefactor     10.544        12.404        .17000E-05    .23718E-03
  22  Prefactor     .10000E-03    15.990       -.22660E-06** at limit **
  23  Prefactor     .10000E-03    4.5482       -.73178E-07** at limit **
  24  Prefactor     105.88        72.280       -.32523E-06    .10637E-04
  25  Normalizat    1.1135        .17656        .10218E-05    .40627E-04
  26  Prefactor     .73955        .21111        .61070E-06    .28568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6667
  Prefactor  = 0.000100001
  norm       = 13.163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09615
  Prefactor  = 0.611098
  Prefactor  = 42.6742
  Prefactor  = 8.03472
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 5.2992
  Prefactor  = 0.0001
  Prefactor  = 4.80156
  Prefactor  = 0.000100002
  norm       = 0.000100031
  norm       = 6.00782
  norm       = 0.000100016
  norm       = 8.0678
  Prefactor  = 3.13529
  Prefactor  = 10.5443
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 105.877
  Normalizat = 1.11346
  Prefactor  = 0.739548
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.206     FROM HESSE     STATUS=OK           462 CALLS     3671 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.667        49.816        .92680E-04   -1.4844    
   2  Prefactor     .10000E-03    83.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.163        3.8267        .75733E-04   -1.4982    
   4  Prefactor     .10000E-03    2.4568        .11432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .70604        .61218E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0962        1.8016        .89793E-04   -1.5418    
   7  Prefactor     .61110        12.206        .23428E-02   -1.5552    
   8  Prefactor     42.674        24.816        .61371E-04   -1.4401    
   9  Prefactor     8.0347        11.739        .14143E-03   -1.5141    
  10  Prefactor     .10003E-03    275.11        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.4723        .11467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.2992        5.3510        .14250E-03   -1.5248    
  13  Prefactor     .10000E-03    19.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8016        37.768        .18210E-03   -1.5270    
  15  Prefactor     .10000E-03    73.518        .46908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10003E-03    8.0789        .22767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.0078        7.2317        .16381E-03   -1.5218    
  18  norm          .10002E-03    34.525        .19713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0678        5.8392        .14114E-03   -1.5140    
  20  Prefactor     3.1353        2.5881        .10267E-03   -1.5354    
  21  Prefactor     10.544        12.372        .12339E-03   -1.5058    
  22  Prefactor     .10000E-03    16.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5505        .15583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     105.88        72.562        .39082E-04   -1.3646    
  25  Normalizat    1.1135        .20374        .21323E-03   -.89321    
  26  Prefactor     .73955        .24529        .31845E-03   -1.0200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13474e-08
Minuit parameter uncertainties:
  1  49.9269
  2  0.00051428
  3  3.82679
  4  4.61663e-06
  5  1.19343e-06
  6  1.80167
  7  5.46315
  8  24.822
  9  11.7422
  10  0.00614506
  11  7.92894e-06
  12  5.35149
  13  2.71026e-05
  14  26.9562
  15  0.000819949
  16  0.00100748
  17  7.2328
  18  0.00147127
  19  5.8396
  20  2.58815
  21  12.3751
  22  2.20494e-05
  23  5.41781e-06
  24  72.6232
  25  0.20388
  26  0.245646
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  8.035e+00  1.174e+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:  7.395e-01  2.456e-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.113e+00  2.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938728/likelihoodResults_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.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) = 5597.20453091
delta logL = 0.00136635735271

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5597.20366161
delta logL = 0.00223565674969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4190       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8520       1.0000          .0000       10.000    
     3 'Normalizat'    1.1126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74006       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=   5597.204     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      247 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4294        590.19        .36811E-02    .50126E-03
   2  Index         1.8512        5.8202        .13442        .69921E-04
   3  Normalizat    1.1125        .10153        .37508E-01   -.40753E-03
   4  Prefactor     .74013        .88497E-01    .71930E-01   -.15630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42937
  Index      = 1.85115
  Normalizat = 1.11251
  Prefactor  = 0.740135
 **********
 **   18 **HESSE 
 **********

 FCN=   5597.204     FROM HESSE     STATUS=OK            31 CALLS      278 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4294        16.223        .73623E-03   -1.5163    
   2  Index         1.8512        1.2012        .12584E-01   -.68126    
   3  Normalizat    1.1125        .19556        .21332E-03   -.89351    
   4  Prefactor     .74013        .24268        .31833E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0265e-08
Minuit parameter uncertainties:
  1  16.2326
  2  1.22123
  3  0.195685
  4  0.243028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938728': 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) = 5597.20366094
delta logL = 0.00223632945381

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.429e+00  1.623e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.851e+00  1.221e+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:  7.401e-01  2.430e-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.113e+00  1.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.89
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/938728/cmap_HighResolution_446688001_446947201_4FGL_J1249.8+3707_daily_bin800.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-06 06:56:01.647503', job_id='938728', GAL2='0.74', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630936561.65', return_code2='0', ts='0.89', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.24e-03', ts2='0.90', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='800' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 938728: <4FGL_J1249.8+3707_daily_bin800> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin800> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:31 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:33 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:40:33 2021
Terminated at Mon Sep  6 06:56:02 2021
Results reported at Mon Sep  6 06:56:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin800 192.46 37.1306 446688001 446947201 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 :                                   745.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

