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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1006
RA = 192.46, Dec = 37.1306
tmin = 500083201, tmax = 500342401
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='940305', job_status='RUN', time_executed='2021-09-06 06:45:44.905490', time_epoch_executed='1630935944.91' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940305

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940305/ft1_4FGL_J1249.8+3707_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940305/ft2_4FGL_J1249.8+3707_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940305/ft1_4FGL_J1249.8+3707_daily_bin1006.fits outfile=/scratch/kocevski/940305/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1006.fits ra=192.46 dec=37.1306 rad=12.0 tmin=500083201.0 tmax=500342401.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 5.73
user 5.39
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940305/ft1_filtered_4FGL_J1249.8+3707_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/940305/ft2_4FGL_J1249.8+3707_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/940305/ltcube_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.fits outfile=/scratch/kocevski/940305/expmap_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.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/940305/ltcube_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.fits
.....................!
real 191.30
user 185.80
sys 4.89

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/940305/ft1_filtered_4FGL_J1249.8+3707_daily_bin1006.fits scfile=/scratch/kocevski/940305/ft2_4FGL_J1249.8+3707_daily_bin1006.fits outfile=/scratch/kocevski/940305/cmap_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940305/ft1_filtered_4FGL_J1249.8+3707_daily_bin1006.fits scfile=/scratch/kocevski/940305/ft2_4FGL_J1249.8+3707_daily_bin1006.fits outfile=/scratch/kocevski/940305/cmap_HighResolution_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.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/940305/ft1_filtered_4FGL_J1249.8+3707_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/940305/ft2_4FGL_J1249.8+3707_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/940305/Model_4FGL_J1249.8+3707_daily_bin1006.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/940305/ft1_filtered_4FGL_J1249.8+3707_daily_bin1006.fits.....................!
real 40.49
user 39.23
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    14.839       1.0000         .10000E-03   10000.    
     3 'norm      '    8.5911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2722       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7221       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15382E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.600       1.0000         .10000E-03   10000.    
    12 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10427E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3358       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    122.95       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77630       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3363       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=   4556.259     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3030 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.031        .42390E-05** at limit **
   2  Prefactor     14.841        27.209        .10867E-05   -.69620E-05
   3  norm          8.5913        3.5695        .50650E-07    .27673E-04
   4  Prefactor     .10000E-03    3.7799        .15262E-06** at limit **
   5  Prefactor     1.2723        1.3302        .27016E-07    .20605E-03
   6  Prefactor     1.7222        1.7687        .19896E-07    .41690E-04
   7  Prefactor     .10000E-03    3.4059       -.24653E-06** at limit **
   8  Prefactor     .10000E-03    42.312       -.43122E-05** at limit **
   9  Prefactor     .10000E-03    61.354        .17722E-04** at limit **
  10  Prefactor     16.049        92.841        .22421E-04   -.21465E-05
  11  Prefactor     11.593        11.018        .21421E-06   -.19199E-03
  12  norm          .10000E-03    3.3399        .27678E-06** at limit **
  13  Prefactor     .10000E-03    19.316       -.10704E-05** at limit **
  14  Prefactor     16.819        33.878        .36551E-05    .13099E-06
  15  Prefactor     .10000E-03    32.182       -.69838E-05** at limit **
  16  norm          .10000E-03    4.4531       -.40419E-06** at limit **
  17  norm          .10000E-03    6.2065       -.48286E-07** at limit **
  18  norm          .10000E-03    1.3152       -.25146E-06** at limit **
  19  norm          .10000E-03    2.0730       -.17283E-07** at limit **
  20  Prefactor     3.3364        4.2312       -.54279E-06   -.28513E-03
  21  Prefactor     .10000E-03    4.7030        .46799E-06** at limit **
  22  Prefactor     .10000E-03    79.119       -.14197E-04** at limit **
  23  Prefactor     .10000E-03    7.9755        .51267E-06** at limit **
  24  Prefactor     122.97        112.72        .19446E-04    .65281E-05
  25  Normalizat    .77602        .20980       -.37475E-05    .10238E-03
  26  Prefactor     1.3366        .24903        .15938E-05   -.67852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.8409
  norm       = 8.59133
  Prefactor  = 0.0001
  Prefactor  = 1.27225
  Prefactor  = 1.72218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0492
  Prefactor  = 11.5934
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.819
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.3364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 122.973
  Normalizat = 0.776016
  Prefactor  = 1.33656
 **********
 **   18 **HESSE 
 **********

 FCN=   4556.259     FROM HESSE     STATUS=OK           448 CALLS     3478 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.841        27.205        .10397E-03   -1.4937    
   3  norm          8.5913        3.5662        .79065E-04   -1.5122    
   4  Prefactor     .10000E-03    3.7912        .12816E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2723        1.3463        .77135E-04   -1.5482    
   6  Prefactor     1.7222        1.7712        .88036E-04   -1.5445    
   7  Prefactor     .10000E-03    3.4083        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    43.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    62.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     16.049        92.613        .10001E-03   -1.4907    
  11  Prefactor     11.593        10.970        .11762E-03   -1.5027    
  12  norm          .10000E-03    3.3671        .11996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.819        33.820        .97669E-04   -1.4888    
  15  Prefactor     .10000E-03    32.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.4708        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.2100        .16424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3201        .75559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.0758        .94906E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.3364        4.2179        .14484E-03   -1.5343    
  21  Prefactor     .10000E-03    4.7039        .14294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    79.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.9921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     122.97        113.22        .36298E-04   -1.3486    
  25  Normalizat    .77602        .25006        .26710E-03   -1.0096    
  26  Prefactor     1.3366        .29842        .26223E-03   -.82226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94076e-10
Minuit parameter uncertainties:
  1  8.34268e-06
  2  27.2274
  3  3.56633
  4  1.88385e-06
  5  1.34632
  6  1.77126
  7  4.42836e-07
  8  0.000136596
  9  0.000330493
  10  77.2885
  11  10.9718
  12  4.3297e-05
  13  5.63714e-06
  14  33.8583
  15  8.13603e-05
  16  8.80404e-06
  17  6.6928e-07
  18  3.98022e-06
  19  1.69642e-06
  20  4.21825
  21  1.78931e-06
  22  7.79388e-05
  23  2.05906e-06
  24  113.418
  25  0.250427
  26  0.298804
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.305e-04  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:  1.337e+00  2.988e-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:  7.760e-01  2.504e-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: 6.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940305/likelihoodResults_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.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) = 4556.25917022
delta logL = -7.66579305491e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4554.91191513
delta logL = 1.34717843496

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22851E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    5.8704       1.0000          .0000       10.000    
     3 'Normalizat'    .61582       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4698       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=   4554.912     FROM MIGRAD    STATUS=CONVERGED    230 CALLS      590 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22901E-03    .82487E-02    .15481E-03** at limit **
   2  Index         5.8698        2.2319        .54915E-01    .57755E-03
   3  Normalizat    .61584        .20658        .67142E-01    .11654E-03
   4  Prefactor     1.4697        .16377        .56969E-01   -.10346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000229015
  Index      = 5.86982
  Normalizat = 0.615838
  Prefactor  = 1.46974
 **********
 **   18 **HESSE 
 **********

 FCN=   4554.912     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      621 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22901E-03    .86027E-02    .86777E-06   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         5.8698        2.5056        .21981E-02    .17485    
   3  Normalizat    .61584        .21499        .29713E-03   -1.0732    
   4  Prefactor     1.4697        .26236        .25189E-03   -.78391    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.59478e-10
Minuit parameter uncertainties:
  1  0.00210702
  2  2.6287
  3  0.215278
  4  0.262601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940305': 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) = 4554.91191507
delta logL = 1.3471784952

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.290e-04  2.107e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  5.870e+00  2.629e+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:  1.470e+00  2.626e-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:  6.158e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.08
Ra Dec: 192.460 37.131
Photon Index (Free Index): 5.87 +/- 2.63
Photon Flux (Free Index): 1.22e-07 +/- 2.22e-06
Energy Flux (Free Index): 1.53e-05 +/- 2.78e-04

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/940305/cmap_HighResolution_500083201_500342401_4FGL_J1249.8+3707_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', comment='SUCCESS', energy_flux2='1.53e-05', dlogl='1.35e+00', photon_flux2='1.22e-07', job_status='DONE', time_completed='2021-09-06 06:56:55.144425', photon_index_error2='2.63', photon_index2='5.87', ts='-0.00', fit_tolerance='1e-08', GAL='1.34', photon_index_error='0.00', photon_flux_upper_limit='6.20e-08', energy_flux_error2='2.78e-04', EG='0.78', time_epoch_completed='1630936615.14', return_code='0', job_id='940305', GAL2='1.47', EG2='0.62', return_code2='102', photon_flux_error2='2.22e-06', ts2='3.08', photon_index='1.78' WHERE bin_id='1006' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 940305: <4FGL_J1249.8+3707_daily_bin1006> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1006> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:27 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:29 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:45:29 2021
Terminated at Mon Sep  6 06:56:56 2021
Results reported at Mon Sep  6 06:56:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1006 192.46 37.1306 500083201 500342401 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 :                                   666.20 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             334.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            689 sec.

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

