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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin412
RA = 192.46, Dec = 37.1306
tmin = 346118401, tmax = 346377601
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='935900', job_status='RUN', time_executed='2021-09-06 06:33:59.250017', time_epoch_executed='1630935239.25' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935900

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935900/ft1_4FGL_J1249.8+3707_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935900/ft2_4FGL_J1249.8+3707_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935900/ft1_4FGL_J1249.8+3707_daily_bin412.fits outfile=/scratch/kocevski/935900/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin412.fits ra=192.46 dec=37.1306 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.09
user 3.84
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935900/ft1_filtered_4FGL_J1249.8+3707_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/935900/ft2_4FGL_J1249.8+3707_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/935900/ltcube_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.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/935900/ft2_4FGL_J1249.8+3707_daily_bin412.fits
.....................!
real 11.61
user 11.22
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935900/ft1_filtered_4FGL_J1249.8+3707_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/935900/ft2_4FGL_J1249.8+3707_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/935900/ltcube_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.fits outfile=/scratch/kocevski/935900/expmap_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.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/935900/ltcube_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.fits
.....................!
real 190.39
user 185.19
sys 4.81

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/935900/ft1_filtered_4FGL_J1249.8+3707_daily_bin412.fits scfile=/scratch/kocevski/935900/ft2_4FGL_J1249.8+3707_daily_bin412.fits outfile=/scratch/kocevski/935900/cmap_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.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.59
user 0.35
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.557       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0632       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9794       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    73.226       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .18441E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.670       1.0000         .10000E-03   10000.    
    16 'norm      '    .16026E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.161       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4442       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4355       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36667E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11827E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2097       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .62464       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=   5387.931     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3114 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.593        28.251        .28082E-05    .19971E-03
   2  Prefactor     .10000E-03    18.791        .44296E-06** at limit **
   3  norm          3.5205        2.6373        .56358E-07   -.23859E-04
   4  Prefactor     5.2134        7.4105        .45798E-05   -.20004E-03
   5  Prefactor     4.0629        2.2884       -.23789E-07   -.56103E-04
   6  Prefactor     1.9795        1.4227        .87450E-08   -.33831E-04
   7  Prefactor     .10000E-03    2.1961        .20640E-07** at limit **
   8  Prefactor     .10000E-03    28.304       -.16161E-05** at limit **
   9  Prefactor     3.7667        9.2891        .60326E-05   -.12459E-03
  10  Prefactor     73.308        58.167        .60781E-05    .36946E-03
  11  Prefactor     .10000E-03    1.7787       -.31641E-07** at limit **
  12  norm          .10001E-03    2.6564        .16785E-05** at limit **
  13  Prefactor     .10000E-03    16.227       -.54588E-06** at limit **
  14  Prefactor     .10000E-03    7.5349        .16460E-06** at limit **
  15  Prefactor     18.674        13.392        .16876E-08   -.18918E-03
  16  norm          .10003E-03    3.8926        .81980E-06** at limit **
  17  norm          12.161        12.977        .27997E-06   -.55360E-05
  18  norm          .10000E-03    2.4296       -.61585E-08** at limit **
  19  norm          1.4403        3.2994        .25435E-06   -.61116E-04
  20  Prefactor     1.4331        3.1561        .64530E-06    .23484E-03
  21  Prefactor     .10006E-03    8.5723       -.15160E-05** at limit **
  22  Prefactor     .10000E-03    54.650        .11940E-05** at limit **
  23  Prefactor     .10000E-03    3.8697        .44913E-08** at limit **
  24  Prefactor     .10000E-03    37.090        .78503E-06** at limit **
  25  Normalizat    1.2097        .17308       -.21026E-05   -.10179E-03
  26  Prefactor     .62455        .20948       -.11539E-06   -.17045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.5933
  Prefactor  = 0.0001
  norm       = 3.52054
  Prefactor  = 5.21338
  Prefactor  = 4.06288
  Prefactor  = 1.9795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76675
  Prefactor  = 73.3085
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.6738
  norm       = 0.00010003
  norm       = 12.1606
  norm       = 0.0001
  norm       = 1.44033
  Prefactor  = 1.43309
  Prefactor  = 0.000100057
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20972
  Prefactor  = 0.624551
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.931     FROM HESSE     STATUS=OK           456 CALLS     3570 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.593        28.447        .90568E-04   -1.4822    
   2  Prefactor     .10000E-03    18.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5205        2.6488        .95196E-04   -1.5333    
   4  Prefactor     5.2134        7.4902        .88030E-03   -1.5251    
   5  Prefactor     4.0629        2.3009        .77047E-04   -1.5305    
   6  Prefactor     1.9795        1.4274        .72030E-04   -1.5427    
   7  Prefactor     .10000E-03    2.1977        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7667        9.3721        .10402E-02   -1.5320    
  10  Prefactor     73.308        60.368        .23459E-03   -1.3993    
  11  Prefactor     .10000E-03    1.7816        .95571E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    5.3185        .22540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.5415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.674        13.178        .92693E-04   -1.4843    
  16  norm          .10003E-03    18.809        .27082E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.161        12.973        .11487E-03   -1.5010    
  18  norm          .10000E-03    2.4676        .22032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.4403        3.2092        .19316E-03   -1.5468    
  20  Prefactor     1.4331        2.8360        .16484E-03   -1.5469    
  21  Prefactor     .10006E-03    34.914        .37385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.8717        .14102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    37.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2097        .19755        .19831E-03   -.86303    
  26  Prefactor     .62455        .23965        .32928E-03   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06281e-09
Minuit parameter uncertainties:
  1  28.4664
  2  7.42653e-05
  3  2.64891
  4  7.49157
  5  2.30099
  6  1.4274
  7  1.48017e-07
  8  0.000173555
  9  9.37572
  10  60.4182
  11  2.66494e-06
  12  0.000561118
  13  5.75936e-05
  14  1.3524e-05
  15  13.1804
  16  0.00150826
  17  12.9765
  18  8.98912e-06
  19  3.20958
  20  2.8363
  21  0.00281682
  22  0.000356811
  23  2.71656e-06
  24  0.000207628
  25  0.197673
  26  0.240041
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.767e+00  9.376e+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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  6.246e-01  2.400e-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.210e+00  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935900/likelihoodResults_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.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) = 5387.88726214
delta logL = 0.0440289758799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5387.88693925
delta logL = 0.0443518681741

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1550       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1552       1.0000          .0000       10.000    
     3 'Normalizat'    1.2084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62492       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=   5387.887     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      292 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1557        13.620        .22871E-03    .26042E-03
   2  Index         2.1546        1.7986        .99848E-02    .70025E-04
   3  Normalizat    1.2084        .19294        .19840E-03    .13167E-03
   4  Prefactor     .62490        .23789        .32916E-03    .96881E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.15568
  Index      = 2.15457
  Normalizat = 1.20836
  Prefactor  = 0.624902
 **********
 **   18 **HESSE 
 **********

 FCN=   5387.887     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1557        7.6802        .91482E-05   -1.5414    
   2  Index         2.1546        1.2986        .39939E-03   -.60540    
   3  Normalizat    1.2084        .19297        .39680E-04   -.86345    
   4  Prefactor     .62490        .23796        .13166E-04   -1.0655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27609e-10
Minuit parameter uncertainties:
  1  7.68372
  2  1.32118
  3  0.193087
  4  0.238346
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935900': 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) = 5387.88693899
delta logL = 0.0443521212173

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.156e+00  7.684e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.155e+00  1.321e+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:  6.249e-01  2.383e-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.208e+00  1.931e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.22
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/935900/cmap_HighResolution_346118401_346377601_4FGL_J1249.8+3707_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-03', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-06 06:45:42.677744', job_id='935900', GAL2='0.62', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630935942.68', return_code2='0', ts='0.22', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='4.44e-02', ts2='0.31', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='412' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 935900: <4FGL_J1249.8+3707_daily_bin412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin412 192.46 37.1306 346118401 346377601 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 :                                   700.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

