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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin50
RA = 192.46, Dec = 37.1306
tmin = 252288001, tmax = 252547201
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='934350', job_status='RUN', time_executed='2021-09-06 06:26:03.134041', time_epoch_executed='1630934763.13' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934350

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934350/ft1_4FGL_J1249.8+3707_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934350/ft1_4FGL_J1249.8+3707_daily_bin50.fits outfile=/scratch/kocevski/934350/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin50.fits ra=192.46 dec=37.1306 rad=12.0 tmin=252288001.0 tmax=252547201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 2.55
user 2.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934350/ft1_filtered_4FGL_J1249.8+3707_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/934350/ltcube_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.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/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits
.....................!
real 12.31
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934350/ft1_filtered_4FGL_J1249.8+3707_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/934350/ltcube_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.fits outfile=/scratch/kocevski/934350/expmap_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.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/934350/ltcube_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.fits
.....................!
real 191.94
user 186.37
sys 5.19

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/934350/ft1_filtered_4FGL_J1249.8+3707_daily_bin50.fits scfile=/scratch/kocevski/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits outfile=/scratch/kocevski/934350/cmap_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.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.73
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934350/ft1_filtered_4FGL_J1249.8+3707_daily_bin50.fits scfile=/scratch/kocevski/934350/ft2_4FGL_J1249.8+3707_daily_bin50.fits outfile=/scratch/kocevski/934350/cmap_HighResolution_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.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.67
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.5151       1.0000         .10000E-03   10000.    
     3 'norm      '    5.8068       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30825       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4178       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.383       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.254       1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.0717       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.7497       1.0000         .10000E-03   10000.    
    17 'norm      '    16.593       1.0000         .10000E-03   10000.    
    18 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.6008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11466E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0869       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1182       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65833       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=   6295.348     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3114 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.539        .26199E-06** at limit **
   2  Prefactor     3.5150        49.698       -.62789E-06   -.14266E-04
   3  norm          5.8069        3.8014       -.94006E-08   -.15324E-03
   4  Prefactor     .32061        5.8288       -.99994E-06   -.10564E-03
   5  Prefactor     3.4178        2.8643        .55455E-08   -.14917E-03
   6  Prefactor     3.9464        2.3924       -.26811E-07   -.23211E-03
   7  Prefactor     21.384        9.9377        .59581E-07   -.22776E-05
   8  Prefactor     .10000E-03    9.0747       -.14216E-05** at limit **
   9  Prefactor     18.254        13.832        .32490E-07   -.87966E-05
  10  Prefactor     45.331        49.921        .76410E-05   -.25632E-04
  11  Prefactor     2.0722        3.2989       -.13621E-06   -.28905E-03
  12  norm          .10000E-03    1.0876       -.80560E-07** at limit **
  13  Prefactor     .10000E-03    41.507        .43326E-05** at limit **
  14  Prefactor     .10000E-03    7.1022        .71518E-07** at limit **
  15  Prefactor     .10000E-03    13.889       -.25973E-05** at limit **
  16  norm          2.7500        2.8508        .70502E-08   -.11222E-03
  17  norm          16.593        11.430        .10230E-06    .70252E-05
  18  norm          .10011E-03    1.8502        .77671E-06** at limit **
  19  norm          7.6054        5.4206       -.24012E-06   -.92925E-03
  20  Prefactor     .10006E-03    1.5351        .89200E-06** at limit **
  21  Prefactor     6.0915        10.610       -.13895E-05   -.61273E-03
  22  Prefactor     .10000E-03    23.740       -.44791E-05** at limit **
  23  Prefactor     .10000E-03    12.279       -.68725E-05** at limit **
  24  Prefactor     .10000E-03    88.741       -.44505E-05** at limit **
  25  Normalizat    1.1181        .15980        .55126E-07   -.26485E-03
  26  Prefactor     .65829        .19704       -.60995E-06   -.13087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.51503
  norm       = 5.8069
  Prefactor  = 0.320613
  Prefactor  = 3.41784
  Prefactor  = 3.94644
  Prefactor  = 21.3837
  Prefactor  = 0.0001
  Prefactor  = 18.2544
  Prefactor  = 45.3315
  Prefactor  = 2.07215
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.74999
  norm       = 16.5926
  norm       = 0.000100105
  norm       = 7.60538
  Prefactor  = 0.000100059
  Prefactor  = 6.09149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11814
  Prefactor  = 0.658287
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.348     FROM HESSE     STATUS=OK           460 CALLS     3574 TOTAL
                     EDM=   .54E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.5150        49.384        .21563E-03   -1.5333    
   3  norm          5.8069        3.7983        .10355E-03   -1.5226    
   4  Prefactor     .32061        29.547        .36207E-02   -1.5595    
   5  Prefactor     3.4178        2.8592        .10285E-03   -1.5338    
   6  Prefactor     3.9464        2.3843        .87713E-04   -1.5311    
   7  Prefactor     21.384        9.9319        .86618E-04   -1.4783    
   8  Prefactor     .10000E-03    9.0838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.254        13.830        .93744E-04   -1.4853    
  10  Prefactor     45.331        49.578        .59554E-04   -1.4360    
  11  Prefactor     2.0722        3.2809        .17641E-03   -1.5420    
  12  norm          .10000E-03    1.0908        .80804E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.1116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.7500        2.8455        .13209E-03   -1.5376    
  17  norm          16.593        11.431        .98324E-04   -1.4893    
  18  norm          .10011E-03    15.315        .18355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.6054        4.9610        .13759E-03   -1.5156    
  20  Prefactor     .10006E-03    10.793        .17256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0915        10.052        .16273E-03   -1.5214    
  22  Prefactor     .10000E-03    23.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    88.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1181        .18571        .20754E-03   -.89172    
  26  Prefactor     .65829        .22964        .32220E-03   -1.0519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42697e-08
Minuit parameter uncertainties:
  1  1.1e-06
  2  26.3764
  3  3.79849
  4  6.15788
  5  2.85933
  6  2.38436
  7  9.93268
  8  1.85774e-06
  9  13.8328
  10  49.6234
  11  3.28117
  12  5.4018e-06
  13  5.10112e-06
  14  9.53068e-06
  15  1.60418e-05
  16  2.84563
  17  11.4325
  18  0.00253864
  19  4.96128
  20  0.00158992
  21  10.055
  22  1.28614e-06
  23  2.01123e-05
  24  2.39738e-05
  25  0.185814
  26  0.229971
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.825e+01  1.383e+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:  6.583e-01  2.300e-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.118e+00  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.94
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.66e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 2.12e-05 +/- 1.60e-05

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) = 6295.34157317
delta logL = 0.00691127129721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.33712972
delta logL = 0.0113547203309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.914       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7035       1.0000          .0000       10.000    
     3 'Normalizat'    1.1196       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65744       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=   6295.337     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.924        19.170        .89754E-04    .59887E-04
   2  Index         1.7039        .52061        .70945E-02    .40782E-03
   3  Normalizat    1.1194        .18396        .20744E-03   -.69076E-04
   4  Prefactor     .65779        .22495        .32233E-03    .14108E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9242
  Index      = 1.70393
  Normalizat = 1.11942
  Prefactor  = 0.657786
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.337     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.924        18.608        .17951E-04   -1.4815    
   2  Index         1.7039        .50556        .14189E-02   -.71977    
   3  Normalizat    1.1194        .18409        .41488E-04   -.89131    
   4  Prefactor     .65779        .22514        .12893E-04   -1.0521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83777e-11
Minuit parameter uncertainties:
  1  18.6135
  2  0.507092
  3  0.184195
  4  0.225448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934350': 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) = 6295.33712726
delta logL = 0.0113571858783

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.992e+01  1.861e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.704e+00  5.071e-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:  6.578e-01  2.254e-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.119e+00  1.842e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.70 +/- 0.51
Photon Flux (Free Index): 1.52e-08 +/- 1.51e-08
Energy Flux (Free Index): 2.44e-05 +/- 3.03e-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/934350/cmap_HighResolution_252288001_252547201_4FGL_J1249.8+3707_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.66e-08', energy_flux2='2.44e-05', photon_flux_error='1.26e-08', dlogl='1.14e-02', energy_flux='2.12e-05', photon_flux2='1.52e-08', job_status='DONE', time_completed='2021-09-06 06:37:29.367558', photon_index_error2='0.51', photon_index2='1.70', ts='5.94', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.12', time_epoch_completed='1630935449.37', return_code='0', job_id='934350', GAL2='0.66', EG2='1.12', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='1.51e-08', ts2='5.96', photon_index='1.78' WHERE bin_id='50' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:37:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 934350: <4FGL_J1249.8+3707_daily_bin50> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin50> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:48 2021
Job was executed on host(s) <bullet0030>, 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:30 2021
Results reported at Mon Sep  6 06:37:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin50 192.46 37.1306 252288001 252547201 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 :                                   681.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   699 sec.
    Turnaround time :                            702 sec.

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

