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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin480
RA = 192.46, Dec = 37.1306
tmin = 363744001, tmax = 364003201
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='937130', job_status='RUN', time_executed='2021-09-06 06:38:49.231592', time_epoch_executed='1630935529.23' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='480'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937130/ft1_4FGL_J1249.8+3707_daily_bin480.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937130/ft2_4FGL_J1249.8+3707_daily_bin480.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937130/ft1_4FGL_J1249.8+3707_daily_bin480.fits outfile=/scratch/kocevski/937130/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin480.fits ra=192.46 dec=37.1306 rad=12.0 tmin=363744001.0 tmax=364003201.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.35
user 3.07
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937130/ft2_4FGL_J1249.8+3707_daily_bin480.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/937130/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin480.fits evtable="EVENTS" outfile="/scratch/kocevski/937130/ft1_filtered_4FGL_J1249.8+3707_daily_bin480.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937130/ft1_filtered_4FGL_J1249.8+3707_daily_bin480.fits evtable="EVENTS" scfile=/scratch/kocevski/937130/ft2_4FGL_J1249.8+3707_daily_bin480.fits sctable="SC_DATA" expcube=/scratch/kocevski/937130/ltcube_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.fits outfile=/scratch/kocevski/937130/expmap_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.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/937130/ltcube_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.fits
.....................!
real 191.20
user 185.68
sys 5.16

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/937130/ft1_filtered_4FGL_J1249.8+3707_daily_bin480.fits scfile=/scratch/kocevski/937130/ft2_4FGL_J1249.8+3707_daily_bin480.fits outfile=/scratch/kocevski/937130/cmap_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937130/ft1_filtered_4FGL_J1249.8+3707_daily_bin480.fits scfile=/scratch/kocevski/937130/ft2_4FGL_J1249.8+3707_daily_bin480.fits outfile=/scratch/kocevski/937130/cmap_HighResolution_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.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.55
user 0.41
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.874       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.7849       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.0157       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6764       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2277       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.301       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24768E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.2860       1.0000         .10000E-03   10000.    
    19 'norm      '    .79073       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6336       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.229       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13090E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .96184       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72549       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=   5473.356     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3537 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.851        33.875        .22502E-05   -.56361E-04
   2  Prefactor     .10000E-03    46.921       -.73514E-06** at limit **
   3  norm          5.7852        2.9259       -.78748E-08    .39205E-04
   4  Prefactor     8.7488        6.9649       -.56367E-07    .12554E-03
   5  Prefactor     3.0159        2.2394        .40684E-09    .77981E-04
   6  Prefactor     .10000E-03    .98380        .29506E-07** at limit **
   7  Prefactor     .10000E-03    2.9479       -.59172E-09** at limit **
   8  Prefactor     17.193        25.580       -.38835E-06    .21062E-04
   9  Prefactor     .10000E-03    8.0971        .17037E-07** at limit **
  10  Prefactor     .10000E-03    28.446        .12406E-05** at limit **
  11  Prefactor     3.6814        3.9985        .32078E-06    .18856E-03
  12  norm          .10000E-03    2.4985       -.16211E-06** at limit **
  13  Prefactor     9.2193        36.749        .11588E-05   -.85178E-05
  14  Prefactor     35.305        21.433        .46348E-06    .42815E-04
  15  Prefactor     .10000E-03    30.723        .10771E-04** at limit **
  16  norm          .10000E-03    1.3305       -.38595E-08** at limit **
  17  norm          .10000E-03    6.7387       -.32113E-07** at limit **
  18  norm          7.2839        6.4740        .65543E-06    .22870E-03
  19  norm          .79656        20.494        .50437E-06    .45596E-04
  20  Prefactor     1.7589        1.8265        .60079E-07    .30802E-04
  21  Prefactor     .10000E-03    5.1929       -.15951E-06** at limit **
  22  Prefactor     6.6327        47.263        .31213E-06    .99622E-05
  23  Prefactor     12.220        18.078       -.89796E-07    .29946E-04
  24  Prefactor     .10000E-03    86.029        .33675E-06** at limit **
  25  Normalizat    .96195        .15492        .23210E-06    .87558E-04
  26  Prefactor     .72543        .18791        .12313E-06    .10444E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8506
  Prefactor  = 0.0001
  norm       = 5.78524
  Prefactor  = 8.74884
  Prefactor  = 3.01588
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1926
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68144
  norm       = 0.0001
  Prefactor  = 9.21929
  Prefactor  = 35.3046
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.28388
  norm       = 0.796558
  Prefactor  = 1.75894
  Prefactor  = 0.0001
  Prefactor  = 6.63274
  Prefactor  = 12.2196
  Prefactor  = 0.0001
  Normalizat = 0.961946
  Prefactor  = 0.725429
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.356     FROM HESSE     STATUS=OK           466 CALLS     4003 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.851        34.074        .10385E-03   -1.4937    
   2  Prefactor     .10000E-03    47.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.7852        2.9488        .80627E-04   -1.5227    
   4  Prefactor     8.7488        6.9689        .13551E-03   -1.5116    
   5  Prefactor     3.0159        2.2586        .85608E-04   -1.5361    
   6  Prefactor     .10000E-03    1.7230        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9559        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.193        25.732        .96618E-04   -1.4878    
   9  Prefactor     .10000E-03    8.1162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6814        3.9188        .14658E-03   -1.5324    
  12  norm          .10000E-03    2.5436        .11417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.2193        36.863        .13193E-03   -1.5101    
  14  Prefactor     35.305        21.952        .67450E-04   -1.4519    
  15  Prefactor     .10000E-03    31.458        .35247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3335        .83319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.7641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.2839        12.465        .94397E-04   -1.5168    
  19  norm          .79656        129.65        .32947E-02   -1.5529    
  20  Prefactor     1.7589        1.8393        .97556E-04   -1.5443    
  21  Prefactor     .10000E-03    5.2162        .16467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6327        47.190        .15580E-03   -1.5193    
  23  Prefactor     12.220        18.141        .11455E-03   -1.5009    
  24  Prefactor     .10000E-03    86.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .96195        .18882        .20552E-03   -.94316    
  26  Prefactor     .72543        .22541        .29067E-03   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.92382e-10
Minuit parameter uncertainties:
  1  34.119
  2  0.000242165
  3  2.94886
  4  6.96954
  5  2.25867
  6  3.52111e-06
  7  8.2759e-07
  8  25.7483
  9  8.26451e-06
  10  0.000167894
  11  3.91904
  12  2.10359e-05
  13  36.9098
  14  21.9568
  15  7.94955e-05
  16  3.23455e-06
  17  1.87602e-05
  18  12.4694
  19  20.3681
  20  1.83931
  21  2.75992e-05
  22  35.423
  23  18.1495
  24  7.98876e-05
  25  0.188952
  26  0.225699
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.265e-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:  7.254e-01  2.257e-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:  9.619e-01  1.890e-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.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937130/likelihoodResults_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.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) = 5473.35692209
delta logL = -0.000586252379435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5473.35633589
delta logL = -5.10444806423e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7262       1.0000          .0000       10.000    
     3 'Normalizat'    .96197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72540       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=   5473.356     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10116E-03    34.389        .18142E-02** at limit **
   2  Index         1.6594        6.8210        .50000        .35747E-04
   3  Normalizat    .96195        .67804E-02    .20552E-03    .19306E-04
   4  Prefactor     .72543        .84707E-02    .29067E-03    .15645E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101163
  Index      = 1.65945
  Normalizat = 0.961947
  Prefactor  = 0.725428
 **********
 **   18 **HESSE 
 **********

 FCN=   5473.356     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10116E-03    155.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6594        5.8244        .50000       -.73167    
   3  Normalizat    .96195        .14623E-01    .82207E-05   -.94316    
   4  Prefactor     .72543        .18269E-01    .11627E-04   -1.0254    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11882e-08
Minuit parameter uncertainties:
  1  0.0269692
  2  143.132
  3  0.0146234
  4  0.0182688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937130': 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) = 5473.35633452
delta logL = 1.3250282791e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.012e-04  2.697e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.659e+00  1.431e+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:  7.254e-01  1.827e-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:  9.619e-01  1.462e-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/937130/cmap_HighResolution_363744001_364003201_4FGL_J1249.8+3707_daily_bin480.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.30e-03', job_status='DONE', photon_flux_upper_limit='3.12e-08', time_completed='2021-09-06 06:51:19.519631', job_id='937130', GAL2='0.73', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630936279.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.33e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='480' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 937130: <4FGL_J1249.8+3707_daily_bin480> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin480> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:29 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:31 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:35:31 2021
Terminated at Mon Sep  6 06:51:20 2021
Results reported at Mon Sep  6 06:51:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin480 192.46 37.1306 363744001 364003201 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 :                                   747.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

