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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin33
RA = 192.46, Dec = 37.1306
tmin = 247881601, tmax = 248140801
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='934325', job_status='RUN', time_executed='2021-09-06 06:28:19.281978', time_epoch_executed='1630934899.28' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='33'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934325/ft1_4FGL_J1249.8+3707_daily_bin33.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934325/ft1_4FGL_J1249.8+3707_daily_bin33.fits outfile=/scratch/kocevski/934325/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin33.fits ra=192.46 dec=37.1306 rad=12.0 tmin=247881601.0 tmax=248140801.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 1.58
user 1.23
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934325/ft1_filtered_4FGL_J1249.8+3707_daily_bin33.fits" evtable="EVENTS" scfile=/scratch/kocevski/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits sctable="SC_DATA" outfile=/scratch/kocevski/934325/ltcube_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.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/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits
.....................!
real 12.51
user 12.14
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934325/ft1_filtered_4FGL_J1249.8+3707_daily_bin33.fits evtable="EVENTS" scfile=/scratch/kocevski/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits sctable="SC_DATA" expcube=/scratch/kocevski/934325/ltcube_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.fits outfile=/scratch/kocevski/934325/expmap_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.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/934325/ltcube_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.fits
.....................!
real 189.71
user 184.89
sys 4.15

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/934325/ft1_filtered_4FGL_J1249.8+3707_daily_bin33.fits scfile=/scratch/kocevski/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits outfile=/scratch/kocevski/934325/cmap_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934325/ft1_filtered_4FGL_J1249.8+3707_daily_bin33.fits scfile=/scratch/kocevski/934325/ft2_4FGL_J1249.8+3707_daily_bin33.fits outfile=/scratch/kocevski/934325/cmap_HighResolution_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2409       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0462       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4726       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.4686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10217E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.015       1.0000         .10000E-03   10000.    
    12 'norm      '    .10866E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.656       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10756E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.9941       1.0000         .10000E-03   10000.    
    17 'norm      '    37.167       1.0000         .10000E-03   10000.    
    18 'norm      '    5.0604       1.0000         .10000E-03   10000.    
    19 'norm      '    .94583       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .72891       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3148       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.374       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .37612E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0028       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88842       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=   6901.102     FROM MIGRAD    STATUS=CONVERGED   1107 CALLS     3185 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.653        .18142E-02** at limit **
   2  Prefactor     .10000E-03    78.872        .18142E-02** at limit **
   3  norm          10.318        3.4681        .40474E-03    .42678E-04
   4  Prefactor     6.2406        8.4403        .16069E-03    .13230E-04
   5  Prefactor     1.0465        1.6123        .14003E-02    .30930E-02
   6  Prefactor     4.4727        2.2103        .82655E-04    .47315E-04
   7  Prefactor     .10000E-03    6.4834        .18142E-02** at limit **
   8  Prefactor     8.4689        13.906        .68877E-03   -.29661E-04
   9  Prefactor     .10000E-03    8.2988        .18142E-02** at limit **
  10  Prefactor     .10000E-03    58.191        .18142E-02** at limit **
  11  Prefactor     13.013        7.5923        .11103E-03    .26622E-04
  12  norm          .10004E-03    13.370        .21192E-02** at limit **
  13  Prefactor     .10000E-03    17.723        .18142E-02** at limit **
  14  Prefactor     25.637        20.258        .79088E-04    .46574E-04
  15  Prefactor     .10000E-03    78.273        .36285E-03** at limit **
  16  norm          5.9924        6.0962        .16400E-03   -.70567E-04
  17  norm          37.166        17.243        .65740E-04    .41504E-05
  18  norm          5.0593        5.2516        .11436E-03   -.24157E-04
  19  norm          .95034        15.997        .39766E-03   -.77019E-04
  20  Prefactor     .72687        2.5627        .22649E-03    .10431E-03
  21  Prefactor     .10000E-03    7.3269        .18142E-02** at limit **
  22  Prefactor     8.3493        64.802        .13903E-03    .30092E-04
  23  Prefactor     15.379        14.688        .10215E-03   -.47857E-05
  24  Prefactor     .10073E-03    46.092        .17024    ** at limit **
  25  Normalizat    1.0029        .18758        .23086E-03    .91496E-04
  26  Prefactor     .88838        .22322        .30035E-03    .60031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.318
  Prefactor  = 6.2406
  Prefactor  = 1.04645
  Prefactor  = 4.47269
  Prefactor  = 0.0001
  Prefactor  = 8.46888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.0131
  norm       = 0.000100036
  Prefactor  = 0.0001
  Prefactor  = 25.6371
  Prefactor  = 0.0001
  norm       = 5.99241
  norm       = 37.1655
  norm       = 5.05927
  norm       = 0.950338
  Prefactor  = 0.726873
  Prefactor  = 0.0001
  Prefactor  = 8.34925
  Prefactor  = 15.3789
  Prefactor  = 0.000100732
  Normalizat = 1.00288
  Prefactor  = 0.888382
 **********
 **   18 **HESSE 
 **********

 FCN=   6901.102     FROM HESSE     STATUS=OK           442 CALLS     3627 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.653        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.318        3.4664        .80948E-04   -1.5065    
   4  Prefactor     6.2406        8.4397        .64275E-05   -1.5208    
   5  Prefactor     1.0465        1.6103        .28006E-03   -1.5503    
   6  Prefactor     4.4727        2.2100        .33062E-05   -1.5285    
   7  Prefactor     .10000E-03    6.4870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.4689        13.906        .27551E-04   -1.5126    
   9  Prefactor     .10000E-03    8.2993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    58.198        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.013        7.5919        .44412E-05   -1.4986    
  12  norm          .10004E-03    13.622        .42385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.723        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     25.637        20.248        .31635E-05   -1.4695    
  15  Prefactor     .10000E-03    78.276        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.9924        6.0947        .65602E-05   -1.5218    
  17  norm          37.166        17.244        .26296E-05   -1.4488    
  18  norm          5.0593        5.2105        .45744E-05   -1.5258    
  19  norm          .95034        15.745        .15906E-04   -1.5513    
  20  Prefactor     .72687        2.5603        .90596E-05   -1.5537    
  21  Prefactor     .10000E-03    7.3281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3493        64.758        .55612E-05   -1.5130    
  23  Prefactor     15.379        14.688        .40860E-05   -1.4923    
  24  Prefactor     .10073E-03    46.180        .16999       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0029        .18774        .92345E-05   -.92934    
  26  Prefactor     .88838        .22342        .12014E-04   -.96548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86766e-09
Minuit parameter uncertainties:
  1  7.97729e-05
  2  2.34626e-06
  3  3.46643
  4  8.44128
  5  1.6104
  6  2.21008
  7  6.45619e-06
  8  13.9111
  9  8.84617e-06
  10  0.000144469
  11  7.59251
  12  0.0014091
  13  3.23267e-05
  14  20.2537
  15  0.000223717
  16  6.09535
  17  17.246
  18  5.21094
  19  7.7385
  20  2.56067
  21  4.04674e-05
  22  46.5748
  23  14.6914
  24  0.0116343
  25  0.187867
  26  0.223649
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.846e-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:  8.884e-01  2.236e-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.003e+00  1.879e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934325/likelihoodResults_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.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) = 6901.1023506
delta logL = -0.000573609749154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6901.10177711
delta logL = -1.17279341794e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7754       1.0000          .0000       10.000    
     3 'Normalizat'    1.0030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88828       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=   6901.102     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    87.002        .90712E-02** at limit **
   2  Index         1.7707        8.4221        .50000        .40911E-05
   3  Normalizat    1.0029        .12472E-01    .46204E-01    .12985E-04
   4  Prefactor     .88838        .15442E-01    .67896E-01    .20029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77072
  Normalizat = 1.00288
  Prefactor  = 0.888382
 **********
 **   18 **HESSE 
 **********

 FCN=   6901.102     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      234 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1146.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7707        6.2751        .50000       -.70214    
   3  Normalizat    1.0029        .57731E-01    .23086E-03   -.92934    
   4  Prefactor     .88838        .71399E-01    .30036E-03   -.96548    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.42038e-09
Minuit parameter uncertainties:
  1  1.71938e-06
  2  45.8092
  3  0.0577343
  4  0.0714064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934325': 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) = 6901.10177698
delta logL = 1.03227648651e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.719e-06  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.771e+00  4.581e+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:  8.884e-01  7.141e-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.003e+00  5.773e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/934325/cmap_HighResolution_247881601_248140801_4FGL_J1249.8+3707_daily_bin33.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-03', job_status='DONE', photon_flux_upper_limit='3.36e-08', time_completed='2021-09-06 06:41:39.855127', job_id='934325', GAL2='0.89', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630935699.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.03e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='33' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:41:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 934325: <4FGL_J1249.8+3707_daily_bin33> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin33 192.46 37.1306 247881601 248140801 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 :                                   798.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

