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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin680
RA = 192.46, Dec = 37.1306
tmin = 415584001, tmax = 415843201
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='938559', job_status='RUN', time_executed='2021-09-06 06:43:03.775869', time_epoch_executed='1630935783.78' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938559

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938559/ft1_4FGL_J1249.8+3707_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938559/ft1_4FGL_J1249.8+3707_daily_bin680.fits outfile=/scratch/kocevski/938559/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin680.fits ra=192.46 dec=37.1306 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.55
user 6.08
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938559/ft1_filtered_4FGL_J1249.8+3707_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/938559/ltcube_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.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/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits
.....................!
real 12.12
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938559/ft1_filtered_4FGL_J1249.8+3707_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/938559/ltcube_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.fits outfile=/scratch/kocevski/938559/expmap_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.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/938559/ltcube_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.fits
.....................!
real 189.76
user 185.15
sys 4.21

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/938559/ft1_filtered_4FGL_J1249.8+3707_daily_bin680.fits scfile=/scratch/kocevski/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits outfile=/scratch/kocevski/938559/cmap_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.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.66
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938559/ft1_filtered_4FGL_J1249.8+3707_daily_bin680.fits scfile=/scratch/kocevski/938559/ft2_4FGL_J1249.8+3707_daily_bin680.fits outfile=/scratch/kocevski/938559/cmap_HighResolution_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.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.65
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.558       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.336       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6874       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5657       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30118E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    42.872       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.464       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.508       1.0000         .10000E-03   10000.    
    16 'norm      '    1.4264       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.912       1.0000         .10000E-03   10000.    
    19 'norm      '    14.743       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .62867       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .28843E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0598       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85458       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=   6343.936     FROM MIGRAD    STATUS=CONVERGED    668 CALLS     3648 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.384        116.78       -.51760E-06   -.41971E-04
   2  Prefactor     .10000E-03    174.66        .11584E-05** at limit **
   3  norm          14.336        4.9758       -.38663E-07   -.32132E-05
   4  Prefactor     .10000E-03    2.8696        .64242E-07** at limit **
   5  Prefactor     2.6876        2.3590       -.20849E-07   -.17469E-04
   6  Prefactor     1.5662        2.2869        .46807E-06    .56021E-03
   7  Prefactor     .10000E-03    9.5867        .39338E-06** at limit **
   8  Prefactor     .10000E-03    15.456        .18429E-06** at limit **
   9  Prefactor     21.776        20.719        .89321E-07   -.60115E-05
  10  Prefactor     .10039E-03    602.26        .30206E-04** at limit **
  11  Prefactor     .10000E-03    5.2148       -.14223E-05** at limit **
  12  norm          .10000E-03    3.0059        .41902E-06** at limit **
  13  Prefactor     42.880        43.277       -.80549E-08   -.14364E-04
  14  Prefactor     23.463        28.751        .95454E-06    .17071E-03
  15  Prefactor     22.508        16.605       -.34904E-06    .42414E-04
  16  norm          1.4267        3.8334        .12714E-05    .57748E-03
  17  norm          .10000E-03    5.7505       -.39897E-09** at limit **
  18  norm          11.918        8.3426        .14811E-06    .41242E-03
  19  norm          14.732        12.988       -.16672E-06    .83726E-04
  20  Prefactor     .10000E-03    1.5355        .55127E-07** at limit **
  21  Prefactor     .10000E-03    3.2999        .65847E-07** at limit **
  22  Prefactor     .10000E-03    215.37        .19500E-05** at limit **
  23  Prefactor     .63364        9.2247       -.15546E-05    .24165E-03
  24  Prefactor     .13019E-03    148.10       -.11688E-04** at limit **
  25  Normalizat    1.0595        .18297        .58025E-06    .28769E-03
  26  Prefactor     .85466        .21360       -.14298E-05    .12614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.3836
  Prefactor  = 0.000100001
  norm       = 14.3358
  Prefactor  = 0.0001
  Prefactor  = 2.68759
  Prefactor  = 1.5662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7759
  Prefactor  = 0.000100394
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 42.8805
  Prefactor  = 23.4629
  Prefactor  = 22.5081
  norm       = 1.42674
  norm       = 0.0001
  norm       = 11.9178
  norm       = 14.732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.633645
  Prefactor  = 0.000130194
  Normalizat = 1.05951
  Prefactor  = 0.85466
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.936     FROM HESSE     STATUS=OK           468 CALLS     4116 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.384        117.60        .22655E-03   -1.3935    
   2  Prefactor     .10000E-03    179.73        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.336        4.9541        .95306E-04   -1.4951    
   4  Prefactor     .10000E-03    2.8777        .13177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6876        2.3586        .10712E-03   -1.5380    
   6  Prefactor     1.5662        2.2652        .13690E-03   -1.5458    
   7  Prefactor     .10000E-03    9.8849        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.776        20.745        .85838E-04   -1.4774    
  10  Prefactor     .10039E-03    619.13        .39648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.3816        .35518E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0383        .13420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     42.880        43.289        .61226E-04   -1.4397    
  14  Prefactor     23.463        28.642        .82693E-04   -1.4739    
  15  Prefactor     22.508        16.506        .84429E-04   -1.4759    
  16  norm          1.4267        3.8202        .24194E-03   -1.5469    
  17  norm          .10000E-03    5.7568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.918        8.5974        .11155E-03   -1.5017    
  19  norm          14.732        13.391        .10431E-03   -1.4940    
  20  Prefactor     .10000E-03    1.5583        .96122E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3021        .14128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    218.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .63364        60.975        .42759E-02   -1.5549    
  24  Prefactor     .13019E-03    58.246        .16627       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0595        .21867        .23578E-03   -.91063    
  26  Prefactor     .85466        .25455        .31495E-03   -.97744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42858e-09
Minuit parameter uncertainties:
  1  117.948
  2  0.000665452
  3  4.95423
  4  4.81659e-06
  5  2.35867
  6  2.26531
  7  4.19306e-05
  8  3.08987e-05
  9  20.7523
  10  0.0315587
  11  0.000130337
  12  2.18116e-05
  13  43.3205
  14  28.6585
  15  16.5095
  16  3.82089
  17  1.42905e-06
  18  8.59827
  19  13.3942
  20  8.46942e-07
  21  5.24637e-06
  22  0.0013014
  23  12.4437
  24  0.0839546
  25  0.218852
  26  0.2549
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.178e+01  2.075e+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:  8.547e-01  2.549e-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.060e+00  2.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.77
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.99e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 2.41e-05

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

Saving results to:
/scratch/kocevski/938559/likelihoodResults_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.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) = 6343.86627605
delta logL = 0.0695156370875

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6343.86218017
delta logL = 0.0736115113577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.022       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0891       1.0000          .0000       10.000    
     3 'Normalizat'    1.0482       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86106       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=   6343.862     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      283 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.992        345.36        .25835E-02    .61035E-03
   2  Index         2.0906        3.0913        .11338        .13279E-03
   3  Normalizat    1.0478        .72794E-01    .40675E-01   -.41989E-04
   4  Prefactor     .86136        .72134E-01    .70916E-01   -.16217E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.9922
  Index      = 2.09061
  Normalizat = 1.04782
  Prefactor  = 0.861364
 **********
 **   18 **HESSE 
 **********

 FCN=   6343.862     FROM HESSE     STATUS=OK            33 CALLS      316 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.992        36.037        .51670E-03   -1.4933    
   2  Index         2.0906        1.1875        .59692E-02   -.62104    
   3  Normalizat    1.0478        .21046        .23689E-03   -.91445    
   4  Prefactor     .86136        .25153        .31378E-03   -.97505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35874e-08
Minuit parameter uncertainties:
  1  36.089
  2  1.2051
  3  0.210628
  4  0.251871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938559': 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) = 6343.86217621
delta logL = 0.0736154734659

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.499e+01  3.609e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.091e+00  1.205e+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:  8.614e-01  2.519e-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.048e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.91
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.09 +/- 1.21
Photon Flux (Free Index): 3.09e-08 +/- 4.36e-08
Energy Flux (Free Index): 1.73e-05 +/- 3.04e-05

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/938559/cmap_HighResolution_415584001_415843201_4FGL_J1249.8+3707_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-03', comment='SUCCESS', photon_flux='1.99e-08', energy_flux2='1.73e-05', photon_flux_error='1.89e-08', dlogl='7.36e-02', energy_flux='2.52e-05', photon_flux2='3.09e-08', job_status='DONE', time_completed='2021-09-06 06:56:49.682336', photon_index_error2='1.21', photon_index2='2.09', ts='1.77', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.58e-08', energy_flux_error2='3.04e-05', EG='1.06', time_epoch_completed='1630936609.68', return_code='0', job_id='938559', GAL2='0.86', EG2='1.05', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='4.36e-08', ts2='1.91', photon_index='1.78' WHERE bin_id='680' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:49 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin680 192.46 37.1306 415584001 415843201 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 :                                   816.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            990 sec.

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

