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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin134
RA = 192.46, Dec = 37.1306
tmin = 274060801, tmax = 274320001
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='934461', job_status='RUN', time_executed='2021-09-06 06:28:30.808288', time_epoch_executed='1630934910.81' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934461

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934461/ft1_4FGL_J1249.8+3707_daily_bin134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934461/ft2_4FGL_J1249.8+3707_daily_bin134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934461/ft1_4FGL_J1249.8+3707_daily_bin134.fits outfile=/scratch/kocevski/934461/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin134.fits ra=192.46 dec=37.1306 rad=12.0 tmin=274060801.0 tmax=274320001.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.72
user 3.45
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934461/ft1_filtered_4FGL_J1249.8+3707_daily_bin134.fits evtable="EVENTS" scfile=/scratch/kocevski/934461/ft2_4FGL_J1249.8+3707_daily_bin134.fits sctable="SC_DATA" expcube=/scratch/kocevski/934461/ltcube_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.fits outfile=/scratch/kocevski/934461/expmap_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.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/934461/ltcube_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.fits
.....................!
real 189.71
user 185.35
sys 4.02

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/934461/ft1_filtered_4FGL_J1249.8+3707_daily_bin134.fits scfile=/scratch/kocevski/934461/ft2_4FGL_J1249.8+3707_daily_bin134.fits outfile=/scratch/kocevski/934461/cmap_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.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/934461/ft1_filtered_4FGL_J1249.8+3707_daily_bin134.fits scfile=/scratch/kocevski/934461/ft2_4FGL_J1249.8+3707_daily_bin134.fits outfile=/scratch/kocevski/934461/cmap_HighResolution_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.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.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.657       1.0000         .10000E-03   10000.    
     3 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5974       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.6352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    46.597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5265       1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3618       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3274       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2086       1.0000         .10000E-03   10000.    
    19 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0071       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10477E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    51.100       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4668       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .61896       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=   6217.926     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     3205 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.708       -.97471E-05** at limit **
   2  Prefactor     16.616        37.539       -.48232E-04    .12764E-04
   3  norm          .10000E-03    1.3035       -.22787E-07** at limit **
   4  Prefactor     17.343        12.385        .28184E-05    .12651E-03
   5  Prefactor     1.5973        1.6985        .11198E-08   -.66421E-05
   6  Prefactor     7.6350        3.3348       -.32127E-06   -.21271E-02
   7  Prefactor     46.597        16.608       -.27111E-06    .50534E-04
   8  Prefactor     .10000E-03    13.856        .39216E-05** at limit **
   9  Prefactor     .10000E-03    6.2566       -.31865E-06** at limit **
  10  Prefactor     .10000E-03    21.645        .92445E-05** at limit **
  11  Prefactor     6.5266        5.0833       -.75228E-06    .95021E-04
  12  norm          .10000E-03    1.8050        .75644E-07** at limit **
  13  Prefactor     .10000E-03    40.626        .15242E-04** at limit **
  14  Prefactor     2.3471        64.896       -.14778E-04   -.35016E-04
  15  Prefactor     .10000E-03    5.5036        .12929E-05** at limit **
  16  norm          2.3280        4.0931       -.42125E-06   -.30289E-03
  17  norm          .10000E-03    24.743       -.11487E-04** at limit **
  18  norm          7.2103        4.8805       -.98485E-06    .34791E-03
  19  norm          .10000E-03    5.4723       -.62281E-06** at limit **
  20  Prefactor     3.0066        4.5056        .10979E-05   -.66093E-04
  21  Prefactor     .10000E-03    12.558       -.66136E-05** at limit **
  22  Prefactor     .10000E-03    80.549        .15105E-05** at limit **
  23  Prefactor     .10000E-03    10.621        .20916E-05** at limit **
  24  Prefactor     51.066        90.094       -.42794E-04    .25513E-04
  25  Normalizat    1.4670        .19794        .61468E-05   -.17336E-03
  26  Prefactor     .61865        .22159       -.77403E-06    .28767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.6157
  norm       = 0.0001
  Prefactor  = 17.3428
  Prefactor  = 1.59731
  Prefactor  = 7.63499
  Prefactor  = 46.5973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.52661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.34706
  Prefactor  = 0.0001
  norm       = 2.32804
  norm       = 0.0001
  norm       = 7.21027
  norm       = 0.0001
  Prefactor  = 3.00662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.0663
  Normalizat = 1.46702
  Prefactor  = 0.618646
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.926     FROM HESSE     STATUS=OK           450 CALLS     3655 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.616        37.520        .98136E-04   -1.4892    
   3  norm          .10000E-03    1.3136        .87649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.343        12.432        .96172E-04   -1.4875    
   5  Prefactor     1.5973        1.6788        .10214E-03   -1.5455    
   6  Prefactor     7.6350        3.3387        .44995E-03   -1.5155    
   7  Prefactor     46.597        16.602        .58738E-04   -1.4342    
   8  Prefactor     .10000E-03    13.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5266        5.0804        .15216E-03   -1.5197    
  12  norm          .10000E-03    1.8131        .10334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.3471        63.681        .26666E-03   -1.5402    
  15  Prefactor     .10000E-03    5.5088        .18065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3280        4.0567        .20086E-03   -1.5403    
  17  norm          .10000E-03    25.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2103        4.7954        .12443E-03   -1.5171    
  19  norm          .10000E-03    5.4943        .17897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0066        4.4561        .17932E-03   -1.5361    
  21  Prefactor     .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    81.147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     51.066        90.357        .56103E-04   -1.4278    
  25  Normalizat    1.4670        .23179        .22407E-03   -.78709    
  26  Prefactor     .61865        .25648        .38579E-03   -1.0681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62573e-09
Minuit parameter uncertainties:
  1  3.90596e-05
  2  37.5729
  3  7.42836e-06
  4  12.4341
  5  1.67882
  6  3.33876
  7  16.6036
  8  5.36054e-05
  9  4.05644e-06
  10  7.26785e-06
  11  5.08076
  12  1.09436e-05
  13  0.000119702
  14  24.4794
  15  8.09548e-07
  16  4.05714
  17  7.53217e-05
  18  4.79568
  19  6.75957e-05
  20  4.45662
  21  3.2378e-05
  22  7.44099e-05
  23  2.79181e-05
  24  90.6004
  25  0.231953
  26  0.256971
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.056e-06  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.186e-01  2.570e-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.467e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934461/likelihoodResults_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.92699732
delta logL = -0.000737833573112

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.9262595
delta logL = -2.1847881726e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7547       1.0000          .0000       10.000    
     3 'Normalizat'    1.4671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61856       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6217.926     FROM MIGRAD    STATUS=FAILED        87 CALLS      244 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    58.569        .18142E-02** at limit **
   2  Index         1.6865        8.8915        .50000        .25190E-04
   3  Normalizat    1.4670        .13517E-01    .22407E-03    .37667E-04
   4  Prefactor     .61864        .15859E-01    .38580E-03    .19007E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6217.926     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      367 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10188E-03    58.569        .51148E-03** at limit **
   2  Index         1.6865        8.8915        .33717E-03    .25190E-04
   3  Normalizat    1.4670        .13517E-01    .34168E-05    .37667E-04
   4  Prefactor     .61864        .15859E-01    .38972E-05    .19007E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6217.926     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      417 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.384        .36285E-02** at limit **
   2  Index         1.2778        9.3410        .50000        .19236E-07
   3  Normalizat    1.4670        .13647E-01    .44814E-04   -.51716E-03
   4  Prefactor     .61864        .16011E-01    .15432E-04   -.30116E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.27781
  Normalizat = 1.46702
  Prefactor  = 0.618635
 **********
 **   18 **HESSE 
 **********

 FCN=   6217.926     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      446 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    347.30        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.2778        5.1897        .50000       -.83969    
   3  Normalizat    1.4670        .31207E-01    .89628E-05   -.78709    
   4  Prefactor     .61864        .36611E-01    .30864E-05   -1.0681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.16761e-11
Minuit parameter uncertainties:
  1  0.000148069
  2  906.449
  3  0.0312079
  4  0.0366123
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934461': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6217.9262575
delta logL = 1.98486486624e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.481e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.278e+00  9.064e+02  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.186e-01  3.661e-02  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.467e+00  3.121e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934461/cmap_HighResolution_274060801_274320001_4FGL_J1249.8+3707_daily_bin134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-06 06:41:35.883493', job_id='934461', GAL2='0.62', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630935695.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='1.98e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='134' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:41:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 934461: <4FGL_J1249.8+3707_daily_bin134> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin134 192.46 37.1306 274060801 274320001 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 :                                   782.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

